| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | class Types |
||
| 23 | { |
||
| 24 | /** @var array<string,ObjectType> */ |
||
| 25 | private array $types; |
||
| 26 | |||
| 27 | public function __construct(array $types = []) |
||
| 28 | { |
||
| 29 | foreach ($types as $name => $type) { |
||
| 30 | $this->set($name, $type); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | public function get($name) |
||
| 41 | } |
||
| 42 | |||
| 43 | public function set(string $name, ObjectType $type): void |
||
| 48 |