protected function removeOutOfRangeEvents(\DateTime $fromDate, \DateTime $toDate)
	{
		// Remove events that do not occur within the date range
		$this->allEvents = array_filter($this->allEvents, function ($event) use ($fromDate, $toDate) {

			if ($event->getStartDate() <= $toDate && $event->getEndDate() >= $fromDate) {
				return true;
			}

			return false;
		});
	}
protected function removeOutOfRangeEvents(\DateTime $fromDate, \DateTime $toDate)
	{
		// Remove events that do not occur within the date range
		$this->allEvents = array_filter($this->allEvents, function ($event) use ($fromDate, $toDate) {

			if ($event->getStartDate() <= $toDate && $event->getEndDate() >= $fromDate) {
				return true;
			}

			return false;
		});
	}
protected function removeOutOfRangeEvents ( \ DateTime $ fromDate , \ DateTime $ toDate ) { // Remove events that do not occur within the date range $ this -> allEvents = array_filter ( $ this -> allEvents , function ( $ event ) use ( $ fromDate , $ toDate ) { if ( $ event -> getStartDate ( ) <= $ toDate && $ event -> getEndDate ( ) >= $ fromDate ) { return true ; } return false ; } ) ; }
Remove any events, particularly occurrences of recurring events, that are out of the date
range provided.

@param \DateTime $fromDate
@param \DateTime $toDate
Remove any events particularly occurrences of recurring events that are out of the date range provided .