src/Didww/API2/ServerPaginatedCollection.php
public function offsetSet($offset, $value)
    {
        $type = $this->getCollectionType();
        if (!$value instanceof $type) {
            throw new ServerPaginatedCollectionExceptoin("$type expected but type " .
                \Didww\Utils\Util::getType($value) .
                " found");
        }
        if (is_null($offset)) {
            $this->_list[] = $value;
        } else {
            $this->_list[$offset] = $value;
        }
    }
public function offsetSet($offset, $value)
    {
        $type = $this->getCollectionType();
        if (!$value instanceof $type) {
            throw new ServerPaginatedCollectionExceptoin("$type expected but type " .
                \Didww\Utils\Util::getType($value) .
                " found");
        }
        if (is_null($offset)) {
            $this->_list[] = $value;
        } else {
            $this->_list[$offset] = $value;
        }
    }
/*
ArrayAccess Interface implementation
ArrayAccess::offsetSet
@see ArrayAccess::offsetSet
@param mixed $offset
@param mixed $value