public function setEmailFormat($format)
    {
        if (!in_array($format, $this->_emailFormatAvailable)) {
            throw new InvalidArgumentException('Format not available.');
        }
        $this->_emailFormat = $format;

        return $this;
    }
public function setEmailFormat($format)
    {
        if (!in_array($format, $this->_emailFormatAvailable)) {
            throw new InvalidArgumentException('Format not available.');
        }
        $this->_emailFormat = $format;

        return $this;
    }
public function setEmailFormat ( $ format ) { if ( ! in_array ( $ format , $ this -> _emailFormatAvailable ) ) { throw new InvalidArgumentException ( 'Format not available.' ) ; } $ this -> _emailFormat = $ format ; return $ this ; }
Sets email format.

@param string $format Formatting string.
@return $this
@throws \InvalidArgumentException
Sets email format .