| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractKeyword implements KeywordInterface |
||
| 10 | { |
||
| 11 | private string $key; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var mixed[]|bool|float|int|object|string|null |
||
| 15 | */ |
||
| 16 | private $value; |
||
| 17 | |||
| 18 | private bool $supportsNullValue; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param mixed[]|bool|float|int|object|string|null $value |
||
| 22 | */ |
||
| 23 | 200 | public function __construct(string $key, $value, bool $supportsNullValue = false) |
|
| 41 | 200 | } |
|
| 42 | |||
| 43 | 200 | public function getKey(): string |
|
| 44 | { |
||
| 45 | 200 | return $this->key; |
|
| 46 | } |
||
| 47 | |||
| 48 | 200 | public function getValue() |
|
| 49 | { |
||
| 50 | 200 | return $this->value; |
|
| 51 | } |
||
| 52 | |||
| 53 | 200 | public function supportsNullValue(): bool |
|
| 56 | } |
||
| 57 | } |
||
| 58 |