public function setResultFormat($format = self::RESULT_ARRAY)
    {
        if (in_array($format, $this->resultFormats)) {
            $this->resultFormat = $format;
        }

        return $this;
    }
public function setResultFormat($format = self::RESULT_ARRAY)
    {
        if (in_array($format, $this->resultFormats)) {
            $this->resultFormat = $format;
        }

        return $this;
    }
public function setResultFormat ( $ format = self :: RESULT_ARRAY ) { if ( in_array ( $ format , $ this -> resultFormats ) ) { $ this -> resultFormat = $ format ; } return $ this ; }
Set the result format

@param string $format

@return Tunes
Set the result format