public function set($index, $newValue) {
        if (!$this->offsetSet($index, $newValue)) {
            $this->append($newValue);
        }

        return $this;
    }
public function set($index, $newValue) {
        if (!$this->offsetSet($index, $newValue)) {
            $this->append($newValue);
        }

        return $this;
    }
public function set ( $ index , $ newValue ) { if ( ! $ this -> offsetSet ( $ index , $ newValue ) ) { $ this -> append ( $ newValue ) ; } return $ this ; }
Sets a value to an index in the collection. If the index does not exist,
it is appended to the collection
@param int $index
@param mixed $newValue
@return \DBScribe\ArrayCollection
Sets a value to an index in the collection . If the index does not exist it is appended to the collection