original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Set the output type on how formatting tags are treated .