| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Registry implements RegistryInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DescriptorInterface[] |
||
| 12 | */ |
||
| 13 | private $descriptors = []; |
||
| 14 | |||
| 15 | public function get(string $name): ?DescriptorInterface |
||
| 16 | { |
||
| 17 | return $this->descriptors[$name] ?? null; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function has(string $name): bool |
||
| 23 | } |
||
| 24 | |||
| 25 | public function register(DescriptorInterface $descriptor): RegistryInterface |
||
| 31 |