Spatie\Feed\Exceptions\InvalidConfiguration::delimiterNotPresent PHP Метод

delimiterNotPresent() публичный статический Метод

public static delimiterNotPresent ( $configValue )
    public static function delimiterNotPresent($configValue)
    {
        return new static("Could not find delimeter '@' in `{$configValue}`");
    }

Usage Example

Пример #1
0
 public function __construct(array $feedConfiguration)
 {
     $this->feedConfiguration = $feedConfiguration;
     if (!str_contains($feedConfiguration['items'], '@')) {
         throw InvalidConfiguration::delimiterNotPresent($feedConfiguration['items']);
     }
 }
InvalidConfiguration