| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | trait TagData |
||
| 6 | { |
||
| 7 | protected $tagData = []; |
||
| 8 | |||
| 9 | final public function hasTagValue(string $key): bool |
||
| 10 | { |
||
| 11 | return \array_key_exists($key, $this->tagData); |
||
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return mixed |
||
| 16 | */ |
||
| 17 | final public function getTagValue(string $key) |
||
| 18 | { |
||
| 19 | return $this->tagData[$key] ?? null; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param mixed $value |
||
| 24 | */ |
||
| 25 | final public function setTagValue(string $key, $value): void |
||
| 28 | } |
||
| 29 | |||
| 30 | final public function removeTagValue(string $key): void |
||
| 33 | } |
||
| 34 | } |
||
| 35 |