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