src/Model/ApiCollection.php
public function offsetSet($offset, $argModel)
    {
        if (is_null($offset)) {
            $this->hashedContainer[$argModel->getName()] = $argModel;
            $this->indexedContainer[] = $argModel;

            return;
        }

        $this->hashedContainer[$offset] = $argModel;
        $this->indexedContainer[$offset] = $argModel;
    }
public function offsetSet($offset, $argModel)
    {
        if (is_null($offset)) {
            $this->hashedContainer[$argModel->getName()] = $argModel;
            $this->indexedContainer[] = $argModel;

            return;
        }

        $this->hashedContainer[$offset] = $argModel;
        $this->indexedContainer[$offset] = $argModel;
    }
public function offsetSet ( $ offset , $ argModel ) { if ( is_null ( $ offset ) ) { $ this -> hashedContainer [ $ argModel -> getName ( ) ] = $ argModel ; $ this -> indexedContainer [ ] = $ argModel ; return ; } $ this -> hashedContainer [ $ offset ] = $ argModel ; $ this -> indexedContainer [ $ offset ] = $ argModel ; }
ArrayAccess Offset Set.

@param mixed      $offset
@param ParamModel $argModel
ArrayAccess Offset Set .