| 1 | <?php |
||
| 7 | class Registry |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var TypeAccessorInterface[] |
||
| 11 | */ |
||
| 12 | private $accessors = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $type |
||
| 16 | * @return TypeAccessorInterface|null |
||
| 17 | */ |
||
| 18 | 15 | public function getAccessor($type) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $type |
||
| 28 | * @param TypeAccessorInterface $accessor |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | 18 | public function registerAccessor($type, TypeAccessorInterface $accessor) |
|
| 36 | } |
||
| 37 |