1 | <?php namespace Datium\Tools; |
||
6 | class Leap { |
||
7 | |||
8 | /** |
||
9 | * @param integer store year value |
||
10 | */ |
||
11 | protected $year; |
||
12 | |||
13 | /** |
||
14 | * @param string store type of year value |
||
15 | */ |
||
16 | protected $type; |
||
17 | |||
18 | /** |
||
19 | * @param boolean store result of leap functions |
||
20 | */ |
||
21 | protected $result; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @param $year integer |
||
26 | * @since Aug, 21 2015 |
||
27 | */ |
||
28 | public function __construct( $year, $type = 'gregorian' ) { |
||
37 | |||
38 | /** |
||
39 | * check the gregorian year is leap or not |
||
40 | * @since Oct, 24 2015 |
||
41 | * @return boolean |
||
42 | */ |
||
43 | public function gregorinLeapYear() { |
||
48 | |||
49 | /** |
||
50 | * check the jalali year is leap or not |
||
51 | * @since Oct, 24 2015 |
||
52 | * @return boolean |
||
53 | */ |
||
54 | public function jalaliLeapYear() { |
||
98 | |||
99 | /** |
||
100 | * check the hijri year is leap or not |
||
101 | * @since Oct, 24 2015 |
||
102 | * @return boolean |
||
103 | */ |
||
104 | public function hijriLeapYear() { |
||
115 | |||
116 | /** |
||
117 | * return the year is leap or not |
||
118 | * @since Aug, 21 2015 |
||
119 | * @return boolean |
||
120 | */ |
||
121 | public function get() { |
||
147 | |||
148 | } |
||
149 |