public function setOutputAs($type)
    {
        if (!in_array($type, [self::RAW, self::PLAIN, self::COLOR], true)) {
            throw new InvalidArgumentException(sprintf('Invalid output type "%s".', $type));
        }

        $this->_outputAs = $type;
    }
public function setOutputAs($type)
    {
        if (!in_array($type, [self::RAW, self::PLAIN, self::COLOR], true)) {
            throw new InvalidArgumentException(sprintf('Invalid output type "%s".', $type));
        }

        $this->_outputAs = $type;
    }
public function setOutputAs ( $ type ) { if ( ! in_array ( $ type , [ self :: RAW , self :: PLAIN , self :: COLOR ] , true ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid output type "%s".' , $ type ) ) ; } $ this -> _outputAs = $ type ; }
Set the output type on how formatting tags are treated.

@param int $type The output type to use. Should be one of the class constants.
@return void
@throws \InvalidArgumentException in case of a not supported output type.
Set the output type on how formatting tags are treated .