| 1 | <?php |
||
| 11 | class JsonObjectMapper implements MapperInterface |
||
| 12 | { |
||
| 13 | private $context; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * JsonObjectMapper constructor. |
||
| 17 | * @param $class |
||
| 18 | * @param Context $context |
||
| 19 | */ |
||
| 20 | 567 | public function __construct(Context $context = null) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $data |
||
| 27 | * @param string $class class to map the data to |
||
| 28 | * @return JsonDeserializeInterface|null |
||
| 29 | */ |
||
| 30 | 567 | public function map(array $data, $class) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param $class |
||
| 38 | * @param Context $context |
||
| 39 | * @return static |
||
| 40 | */ |
||
| 41 | 567 | public static function of(Context $context = null) |
|
| 45 | } |
||
| 46 |