| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 24 | final private function __construct( |
|
| 14 | protected readonly \ReflectionFunctionAbstract $reflection, |
||
| 15 | protected readonly string $parameter, |
||
| 16 | ?string $message = null, |
||
| 17 | ) { |
||
| 18 | 24 | $message ??= $this->getValidationMessage($reflection, $parameter); |
|
| 19 | 24 | parent::__construct($this->renderFunctionAndParameter($reflection, $message)); |
|
| 20 | } |
||
| 45 |