src/datetime/OrderedList.php
public function offsetGet($offset)
    {
        if (!$offset instanceof Date) {
            $offset = new Date($offset);
        }
        $value = $this->storage[$this->searchOffset($offset)][1];

        return $value;
    }
public function offsetGet($offset)
    {
        if (!$offset instanceof Date) {
            $offset = new Date($offset);
        }
        $value = $this->storage[$this->searchOffset($offset)][1];

        return $value;
    }
public function offsetGet ( $ offset ) { if ( ! $ offset instanceof Date ) { $ offset = new Date ( $ offset ) ; } $ value = $ this -> storage [ $ this -> searchOffset ( $ offset ) ] [ 1 ] ; return $ value ; }
(PHP 5 &gt;= 5.1.0)<br/>
Offset to retrieve
@link http://php.net/manual/en/arrayaccess.offsetget.php
@param mixed $offset <p>
The offset to retrieve.
</p>
@return mixed Can return all value types.
( PHP 5 &gt ; = 5 . 1 . 0 ) <br / > Offset to retrieve