| 1 | <?php namespace OpenCafe\Tools; |
||
| 6 | class Leap |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param integer store year value |
||
| 11 | */ |
||
| 12 | protected $year; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string store type of year value |
||
| 16 | */ |
||
| 17 | protected $type; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param boolean store result of leap functions |
||
| 21 | */ |
||
| 22 | protected $result; |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @param $year integer |
||
| 27 | * @since Aug, 21 2015 |
||
| 28 | */ |
||
| 29 | public function __construct($year, $type = 'gregorian') |
||
| 39 | |||
| 40 | |||
| 41 | /** |
||
| 42 | * return the year is leap or not |
||
| 43 | * |
||
| 44 | * @since Aug, 21 2015 |
||
| 45 | * @return boolean |
||
| 46 | */ |
||
| 47 | public function get() |
||
| 55 | } |
||
| 56 |