mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2024-11-24 06:16:13 +00:00
83a3adecff
this makes retrieval static analysis friendly without extra steps.
20 lines
354 B
Plaintext
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{}
|
|
}
|