protected containsPeriod ( |
||
$period | ||
return | boolean |
protected function containsPeriod(Period $period)
{
$endDate = $period->getEndDate();
return $this->contains($period->getStartDate()) && ($endDate >= $this->startDate && $endDate <= $this->endDate);
}