| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class PerformerNames implements SemanticTag |
||
| 10 | { |
||
| 11 | /** @var array<string> */ |
||
| 12 | private array $performerNames = []; |
||
| 13 | |||
| 14 | public function __construct(string $performerName = null) |
||
| 15 | { |
||
| 16 | if (isset($performerName)) { |
||
| 17 | $this->addPerformer($performerName); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | public function addPerformer(string $name): void |
||
| 22 | { |
||
| 23 | $this->performerNames[] = $name; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getKey(): string |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array<string> |
||
| 33 | */ |
||
| 34 | public function getValue(): array |
||
| 37 | } |
||
| 38 | } |
||
| 39 |