| 1 | <?php |
||
| 10 | class FromJdnConverter extends Converter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * FromJdnConverter constructor. |
||
| 14 | * |
||
| 15 | * @param $jdn int |
||
| 16 | * |
||
| 17 | * @throws \Andegna\Exception\InvalidDateException |
||
| 18 | */ |
||
| 19 | 81 | public function __construct(int $jdn) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Set the JDN for processing. |
||
| 26 | * |
||
| 27 | * @param $jdn |
||
| 28 | * |
||
| 29 | * @throws \Andegna\Exception\InvalidDateException |
||
| 30 | * |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | 81 | public function set(int $jdn) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param $jdn integer |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | 81 | protected static function process(int $jdn): array |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @param $date array |
||
| 66 | * |
||
| 67 | * @return $this|Converter |
||
| 68 | */ |
||
| 69 | 81 | protected function setDate(array $date): Converter |
|
| 77 | } |
||
| 78 |