Phpro\SoapClient\Exception\InvalidArgumentException::wsdlConfigurationIsMissing PHP Méthode

wsdlConfigurationIsMissing() public static méthode

public static wsdlConfigurationIsMissing ( ) : InvalidArgumentException
Résultat InvalidArgumentException
    public static function wsdlConfigurationIsMissing()
    {
        return new static('You did not configure a WSDL file.');
    }

Usage Example

Exemple #1
0
 /**
  * @return string
  * @throws InvalidArgumentException
  */
 public function getWsdl()
 {
     if (!$this->wsdl) {
         throw InvalidArgumentException::wsdlConfigurationIsMissing();
     }
     return $this->wsdl;
 }