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