| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | final class Property |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $name; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array|string[] |
||
| 15 | */ |
||
| 16 | private $types; |
||
| 17 | |||
| 18 | 24 | public function __construct(string $name, array $types) |
|
| 19 | { |
||
| 20 | 24 | $this->name = $name; |
|
| 21 | 24 | $this->types = $types; |
|
| 22 | } |
||
| 23 | |||
| 24 | 21 | public function getName(): string |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | public function getTypes(): array |
|
| 32 | } |
||
| 33 | |||
| 34 | 19 | public function getTypesFiltered(callable $filter): array |
|
| 37 | } |
||
| 38 | |||
| 39 | 2 | public function hasType(string $type): bool |
|
| 44 |