src/datetime/OrderedList.php
public function offsetSet($offset, $value)
    {
        if (!$offset instanceof Date) {
            $offset = new Date($offset);
        }

        $index = $this->searchOffset($offset);
        if (is_null($index)) {
            $this->storage[] = array($offset, $value);
        } else {
            $this->storage[$index] = array($offset, $value);
        }

        $this->isOrdered = false;
    }
public function offsetSet($offset, $value)
    {
        if (!$offset instanceof Date) {
            $offset = new Date($offset);
        }

        $index = $this->searchOffset($offset);
        if (is_null($index)) {
            $this->storage[] = array($offset, $value);
        } else {
            $this->storage[$index] = array($offset, $value);
        }

        $this->isOrdered = false;
    }
public function offsetSet ( $ offset , $ value ) { if ( ! $ offset instanceof Date ) { $ offset = new Date ( $ offset ) ; } $ index = $ this -> searchOffset ( $ offset ) ; if ( is_null ( $ index ) ) { $ this -> storage [ ] = array ( $ offset , $ value ) ; } else { $ this -> storage [ $ index ] = array ( $ offset , $ value ) ; } $ this -> isOrdered = false ; }
(PHP 5 &gt;= 5.1.0)<br/>
Offset to set
@link http://php.net/manual/en/arrayaccess.offsetset.php
@param mixed $offset <p>
The offset to assign the value to.
</p>
@param mixed $value <p>
The value to set.
</p>
@return void
( PHP 5 &gt ; = 5 . 1 . 0 ) <br / > Offset to set