@@ -36,12 +36,18 @@ discard block |
||
| 36 | 36 | trait Romanian |
| 37 | 37 | { |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $year |
|
| 41 | + */ |
|
| 39 | 42 | private function getEasterDatetime($year) { |
| 40 | 43 | $base = new \DateTime("$year-03-21"); |
| 41 | 44 | $days = easter_days($year); |
| 42 | 45 | return $base->add(new \DateInterval("P{$days}D")); |
| 43 | 46 | } |
| 44 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $fileBaseName |
|
| 50 | + */ |
|
| 45 | 51 | private function readTypeFromJsonFile($fileBaseName) { |
| 46 | 52 | $fName = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json'; |
| 47 | 53 | $fJson = fopen($fName, 'r'); |
@@ -80,7 +86,7 @@ discard block |
||
| 80 | 86 | * (where fixed means every single year occur on same day of the month) |
| 81 | 87 | * |
| 82 | 88 | * @param date $lngDate |
| 83 | - * @return array |
|
| 89 | + * @return integer[] |
|
| 84 | 90 | */ |
| 85 | 91 | private function setHolidaysFixed($lngDate) { |
| 86 | 92 | $givenYear = date('Y', $lngDate); |
@@ -165,7 +171,7 @@ discard block |
||
| 165 | 171 | /** |
| 166 | 172 | * returns working days in a given month |
| 167 | 173 | * |
| 168 | - * @param date $lngDate |
|
| 174 | + * @param integer $lngDate |
|
| 169 | 175 | * @param boolean $inclCatholicEaster |
| 170 | 176 | * @return int |
| 171 | 177 | */ |