Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 77.78% |
Changes | 0 |
1 | <?php |
||
14 | final class ConstantIntegerType extends IntegerType implements ConstantScalarType |
||
15 | { |
||
16 | /** @var int */ |
||
17 | private $value; |
||
18 | |||
19 | 9 | public function __construct(int $value) |
|
20 | { |
||
21 | 9 | $this->value = $value; |
|
22 | 9 | } |
|
23 | |||
24 | public function getValue() : int |
||
27 | } |
||
28 | |||
29 | 1 | public function describe() : string |
|
32 | } |
||
33 | |||
34 | 8 | public function validate($value) : bool |
|
39 |