public function offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            throw new \InvalidArgumentException('Writer "' . $index . '" does not exist');
        }

        return parent::offsetGet($index);
    }
public function offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            throw new \InvalidArgumentException('Writer "' . $index . '" does not exist');
        }

        return parent::offsetGet($index);
    }
public function offsetGet ( $ index ) { if ( ! $ this -> offsetExists ( $ index ) ) { throw new \ InvalidArgumentException ( 'Writer "' . $ index . '" does not exist' ) ; } return parent :: offsetGet ( $ index ) ; }
Retrieves a writer from the collection.

@param string $index the name of the writer to retrieve.

@throws \InvalidArgumentException if the writer is not in the collection.

@return WriterAbstract
Retrieves a writer from the collection .