| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Argument extends AbstractArgument implements DefaultValueAwareInterface, DeprecationReasonAwareInterface |
||
| 11 | { |
||
| 12 | private readonly string $deprecationReason; |
||
| 13 | private readonly mixed $defaultValue; |
||
| 14 | |||
| 15 | 1 | public function __construct( |
|
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function getDeprecationReason(): ?string |
|
| 35 | { |
||
| 36 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
||
| 37 | 1 | return $this->deprecationReason ?? null; |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | public function hasDefaultValue(): bool |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function getDefaultValue(): mixed |
|
| 51 |