public function find($index)
    {
        if ($index instanceof PeriodInterface) {
            $index = $index->getBegin();
        }
        if ($index instanceof \DateTime) {
            $index = $this->computeIndex($index);
        }

        return isset($this->events[$index]) ? $this->events[$index] : array();
    }
public function find($index)
    {
        if ($index instanceof PeriodInterface) {
            $index = $index->getBegin();
        }
        if ($index instanceof \DateTime) {
            $index = $this->computeIndex($index);
        }

        return isset($this->events[$index]) ? $this->events[$index] : array();
    }
public function find ( $ index ) { if ( $ index instanceof PeriodInterface ) { $ index = $ index -> getBegin ( ) ; } if ( $ index instanceof \ DateTime ) { $ index = $ this -> computeIndex ( $ index ) ; } return isset ( $ this -> events [ $ index ] ) ? $ this -> events [ $ index ] : array ( ) ; }
returns events.

@param mixed $index

@return EventInterface[]
returns events .