0
0
mirror of https://github.com/pmmp/BedrockProtocol.git synced 2025-08-11 22:02:56 +00:00
Files
BedrockProtocol/tests/phpstan/stubs/JsonMapper.stub
Dylan K. Taylor eed9432aed new repo who dis
2021-07-14 15:23:03 +01:00

20 lines
354 B
Plaintext

<?php
//possible bug in phpstan requires this to be defined here
class JsonMapper_Exception extends \Exception{}
class JsonMapper{
/**
* @template TModel of object
*
* @param mixed[]|object $json
* @param TModel $object
*
* @return TModel
*
* @throws JsonMapper_Exception
*/
public function map($json, object $object) : object{}
}