public function setWarningLevel($level = self::WARNING_LEVEL_DEFAULT)
    {
        if (!in_array($level, $this->availableWarningLevels)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The warning level "%s" is not available.',
                $level
            ));
        }

        $this->warningLevel = (string) $level;

        return $this;
    }
public function setWarningLevel($level = self::WARNING_LEVEL_DEFAULT)
    {
        if (!in_array($level, $this->availableWarningLevels)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The warning level "%s" is not available.',
                $level
            ));
        }

        $this->warningLevel = (string) $level;

        return $this;
    }
public function setWarningLevel ( $ level = self :: WARNING_LEVEL_DEFAULT ) { if ( ! in_array ( $ level , $ this -> availableWarningLevels ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'The warning level "%s" is not available.' , $ level ) ) ; } $ this -> warningLevel = ( string ) $ level ; return $ this ; }
Sets warning level

@param string $level
@return RemoteCompiler
@throws Exception\InvalidArgumentException
Sets warning level