| 1 | <?php |
||
| 18 | trait CastToIntegerConstructor |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Creates a new value of some type, with casting the supplied value to an integer if the value is present in a |
||
| 22 | * non-strict comparison with the values. |
||
| 23 | * |
||
| 24 | * @param mixed $value |
||
| 25 | * |
||
| 26 | * @throws \UnexpectedValueException if incompatible type is given. |
||
| 27 | */ |
||
| 28 | 45 | public function __construct($value = null) |
|
| 43 | } |
||
| 44 |