public function isDuring(PeriodInterface $period)
    {
        return $this->getBegin() >= $period->getBegin() && $this->getEnd() < $period->getEnd();
    }
public function isDuring(PeriodInterface $period)
    {
        return $this->getBegin() >= $period->getBegin() && $this->getEnd() < $period->getEnd();
    }
public function isDuring ( PeriodInterface $ period ) { return $ this -> getBegin ( ) >= $ period -> getBegin ( ) && $ this -> getEnd ( ) < $ period -> getEnd ( ) ; }
Check if the event is during the given period.

@param PeriodInterface $period

@return bool true if the event is during $period, false otherwise
Check if the event is during the given period .