public function offsetSet($offset, $value)
    {
        if (!$value instanceof Transformation) {
            throw new \InvalidArgumentException(
                '\phpDocumentor\Transformer\Template may only contain items of '
                . 'type \phpDocumentor\Transformer\Transformation'
            );
        }

        $this->transformations[$offset] = $value;
    }
public function offsetSet($offset, $value)
    {
        if (!$value instanceof Transformation) {
            throw new \InvalidArgumentException(
                '\phpDocumentor\Transformer\Template may only contain items of '
                . 'type \phpDocumentor\Transformer\Transformation'
            );
        }

        $this->transformations[$offset] = $value;
    }
public function offsetSet ( $ offset , $ value ) { if ( ! $ value instanceof Transformation ) { throw new \ InvalidArgumentException ( '\phpDocumentor\Transformer\Template may only contain items of ' . 'type \phpDocumentor\Transformer\Transformation' ) ; } $ this -> transformations [ $ offset ] = $ value ; }
Sets a transformation at the given offset.

@param integer|string $offset The offset to place the value at.
@param Transformation $value  The transformation to add to this template.

@throws \InvalidArgumentException if an invalid item was received
Sets a transformation at the given offset .