src/Util/Output.php
public function get($writer)
    {
        if (!array_key_exists($writer, $this->writers)) {
            throw new UnexpectedValueException('Unknown writer [' . $writer . ']');
        }

        if (count($this->writers[$writer]) == 1) {
            return reset($this->writers[$writer]);
        }

        return $this->writers[$writer];
    }
public function get($writer)
    {
        if (!array_key_exists($writer, $this->writers)) {
            throw new UnexpectedValueException('Unknown writer [' . $writer . ']');
        }

        if (count($this->writers[$writer]) == 1) {
            return reset($this->writers[$writer]);
        }

        return $this->writers[$writer];
    }
public function get ( $ writer ) { if ( ! array_key_exists ( $ writer , $ this -> writers ) ) { throw new UnexpectedValueException ( 'Unknown writer [' . $ writer . ']' ) ; } if ( count ( $ this -> writers [ $ writer ] ) == 1 ) { return reset ( $ this -> writers [ $ writer ] ) ; } return $ this -> writers [ $ writer ] ; }
Get a specific writer

@param string $writer

@return WriterInterface|array
@throws UnexpectedValueException if writer key doesn't exist
Get a specific writer