public static destinationConfigurationIsMissing ( ) : |
||
return |
public static function destinationConfigurationIsMissing()
{
return new static('You did not configure a destination.');
}
/** * @return string * @throws InvalidArgumentException */ public function getDestination() { if (!$this->destination) { throw InvalidArgumentException::destinationConfigurationIsMissing(); } return $this->destination; }