1 | <?php |
||
19 | class TypeRegistry implements TypeRegistryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var TypeInterface[] |
||
23 | */ |
||
24 | private $types; |
||
25 | |||
26 | /** |
||
27 | * TypeRegistry constructor. |
||
28 | */ |
||
29 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function add(TypeInterface $type): void |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function get($name): TypeInterface |
||
55 | } |
||
56 |