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

@param PeriodInterface $period

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