public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->tokens[$this->count++] = $value;
        } else {
            $this->tokens[$offset] = $value;
        }
    }
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->tokens[$this->count++] = $value;
        } else {
            $this->tokens[$offset] = $value;
        }
    }
public function offsetSet ( $ offset , $ value ) { if ( $ offset === null ) { $ this -> tokens [ $ this -> count ++ ] = $ value ; } else { $ this -> tokens [ $ offset ] = $ value ; } }
Sets an value inside the container.

@param int   $offset the offset to be set
@param Token $value  the token to be saved
Sets an value inside the container .