| 1 | <?php |
||
| 13 | class ToJdnConverter extends Converter |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * ToJdnConverter constructor. |
||
| 18 | * |
||
| 19 | * @param $day |
||
| 20 | * @param $month |
||
| 21 | * @param $year |
||
| 22 | * |
||
| 23 | * @throws \Andegna\Exception\InvalidDateException |
||
| 24 | */ |
||
| 25 | public function __construct($day, $month, $year) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $day |
||
| 32 | * @param $month |
||
| 33 | * @param $year |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | * @throws \Andegna\Exception\InvalidDateException |
||
| 37 | */ |
||
| 38 | public function set($day, $month, $year) |
||
| 54 | |||
| 55 | protected static function process($day, $month, $year) |
||
| 64 | } |
||
| 65 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.