classes/phing/tasks/ext/RSTTask.php
public function setFormat($format)
    {
        if (!in_array($format, self::$supportedFormats)) {
            throw new BuildException(
                sprintf(
                    'Invalid output format "%s", allowed are: %s',
                    $format,
                    implode(', ', self::$supportedFormats)
                )
            );
        }
        $this->format = $format;
    }
public function setFormat($format)
    {
        if (!in_array($format, self::$supportedFormats)) {
            throw new BuildException(
                sprintf(
                    'Invalid output format "%s", allowed are: %s',
                    $format,
                    implode(', ', self::$supportedFormats)
                )
            );
        }
        $this->format = $format;
    }
public function setFormat ( $ format ) { if ( ! in_array ( $ format , self :: $ supportedFormats ) ) { throw new BuildException ( sprintf ( 'Invalid output format "%s", allowed are: %s' , $ format , implode ( ', ' , self :: $ supportedFormats ) ) ) ; } $ this -> format = $ format ; }
The setter for the attribute "format"

@param string $format Output format

@return void

@throws BuildException When the format is not supported
The setter for the attribute format