Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class SitemapException extends \Exception |
||
6 | { |
||
7 | public static function forEmptyPath(): self |
||
8 | { |
||
9 | return new self('The path you have given is empty.'); |
||
10 | } |
||
11 | |||
12 | public static function forEmptyUrl(): self |
||
13 | { |
||
14 | return new self('The url you have given is empty.'); |
||
15 | } |
||
16 | |||
17 | public static function forNotExistingChangeFrequency(string $changeFrequency): self |
||
18 | { |
||
19 | return new self('The given changeFrequency "' . $changeFrequency . '" does not exist.'); |
||
20 | } |
||
21 | |||
22 | public static function forNotExistingSitemapProvider($sitemapProviderKey): self |
||
23 | { |
||
24 | return new self('The requested sitemap provider with key "' . $sitemapProviderKey . '" does not exist.'); |
||
25 | } |
||
26 | |||
27 | public static function forPriority(): self |
||
30 | } |
||
31 | } |
||
32 |