original_string: public function setEmailFormat($format)
      {
          if (!in_array($format, $this->_emailFormatAvailable)) {
              throw new InvalidArgumentException('Format not available.');
          }
          $this->_emailFormat = $format;
  
          return $this;
      }
code: public function setEmailFormat($format)
      {
          if (!in_array($format, $this->_emailFormatAvailable)) {
              throw new InvalidArgumentException('Format not available.');
          }
          $this->_emailFormat = $format;
  
          return $this;
      }
code_tokens: public function setEmailFormat ( $ format ) { if ( ! in_array ( $ format , $ this -> _emailFormatAvailable ) ) { throw new InvalidArgumentException ( 'Format not available.' ) ; } $ this -> _emailFormat = $ format ; return $ this ; }
docstring: Sets email format.
  
  @param string $format Formatting string.
  @return $this
  @throws \InvalidArgumentException
docstring_tokens: Sets email format .