| 1 | <?php |
||
| 11 | class ToJdnConverter extends Converter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * ToJdnConverter constructor. |
||
| 15 | * |
||
| 16 | * @param $day |
||
| 17 | * @param $month |
||
| 18 | * @param $year |
||
| 19 | * |
||
| 20 | * @throws \Andegna\Exception\InvalidDateException |
||
| 21 | */ |
||
| 22 | 98 | public function __construct(int $day, int $month, int $year) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Set the date for processing. |
||
| 29 | * |
||
| 30 | * @param $day |
||
| 31 | * @param $month |
||
| 32 | * @param $year |
||
| 33 | * |
||
| 34 | * @throws \Andegna\Exception\InvalidDateException |
||
| 35 | * |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | 98 | public function set(int $day, int $month, int $year) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @param $day |
||
| 57 | * @param $month |
||
| 58 | * @param $year |
||
| 59 | * |
||
| 60 | * @return int |
||
| 61 | */ |
||
| 62 | 81 | protected static function process($day, $month, $year) |
|
| 71 | } |
||
| 72 |