public function set($index, $item)
    {
        $this->offsetSet($index, $this->parser->text($item));
    }
public function set($index, $item)
    {
        $this->offsetSet($index, $this->parser->text($item));
    }
public function set ( $ index , $ item ) { $ this -> offsetSet ( $ index , $ this -> parser -> text ( $ item ) ) ; }
Sets a new object onto the collection or clear it using null.

@param string|integer $index An index value to recognize this item with.
@param string         $item  The item to store, generally a Descriptor but may be something else.

@return void
Sets a new object onto the collection or clear it using null .