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