1 | <?php namespace Neomerx\JsonApi\Schema; |
||
26 | class ResourceIdentifierContainerAdapter implements ContainerInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var ContainerInterface |
||
30 | */ |
||
31 | private $container; |
||
32 | |||
33 | /** |
||
34 | * @var FactoryInterface |
||
35 | */ |
||
36 | private $factory; |
||
37 | |||
38 | /** |
||
39 | * ResourceIdentifierContainerAdapter constructor. |
||
40 | * |
||
41 | * @param FactoryInterface $factory |
||
42 | * @param ContainerInterface $container |
||
43 | */ |
||
44 | 4 | public function __construct(FactoryInterface $factory, ContainerInterface $container) |
|
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 4 | public function getSchema($resourceObject): SchemaInterface |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 3 | public function hasSchema($resourceObject): bool |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 1 | public function getSchemaByType(string $type): SchemaInterface |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 4 | public function getSchemaByResourceType(string $resourceType): SchemaInterface |
|
81 | |||
82 | /** |
||
83 | * @param SchemaInterface $schema |
||
84 | * |
||
85 | * @return SchemaInterface |
||
86 | */ |
||
87 | 4 | protected function getSchemaAdapter(SchemaInterface $schema): SchemaInterface |
|
91 | } |
||
92 |