Created
September 28, 2016 10:55
-
-
Save davialexandre/9452c04cc182ea79b17eb9838a22d552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getNumberOfPublicHolidaysForPeriod() { | |
if(!$this->numberOfPublicHolidaysInPeriod) { | |
$this->numberOfPublicHolidaysInPeriod = PublicHoliday::getNumberOfPublicHolidaysForPeriod( | |
$this->period->start_date, | |
$this->period->end_date | |
); | |
} | |
return $this->numberOfPublicHolidaysInPeriod; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment