| 1 | <?php |
||
| 14 | class ObjectMapperHandler implements ObjectHandlerInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * JsonAPI resource object mapper |
||
| 18 | * |
||
| 19 | * @var ObjectMapper |
||
| 20 | */ |
||
| 21 | protected $mapper; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ObjectMapperHandler constructor. |
||
| 25 | * |
||
| 26 | * @param ObjectMapper $mapper |
||
| 27 | */ |
||
| 28 | 1 | public function __construct(ObjectMapper $mapper) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 1 | public function handle($object): ResourceObject |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function supports(string $class): bool |
||
| 48 | } |