| 1 | <?php |
||
| 23 | class Sun |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var \DateTime The time of the sun rise. |
||
| 27 | */ |
||
| 28 | public $rise; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var \DateTime The time of the sun set. |
||
| 32 | */ |
||
| 33 | public $set; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a new sun object. |
||
| 37 | * |
||
| 38 | * @param \DateTime $rise The time of the sun rise |
||
| 39 | * @param \DateTime $set The time of the sun set. |
||
| 40 | * |
||
| 41 | * @throws \LogicException If sunset is before sunrise. |
||
| 42 | * @internal |
||
| 43 | */ |
||
| 44 | 3 | public function __construct(\DateTime $rise, \DateTime $set) |
|
| 52 | } |
||
| 53 |