1 | <?php |
||
16 | class ChangeFrequency implements ChangeFrequencyContract |
||
17 | { |
||
18 | /* ----------------------------------------------------------------- |
||
19 | | Main Methods |
||
20 | | ----------------------------------------------------------------- |
||
21 | */ |
||
22 | |||
23 | /** |
||
24 | * Get all the valid frequency keys. |
||
25 | * |
||
26 | * @return \Illuminate\Support\Collection |
||
27 | */ |
||
28 | 30 | public static function keys(): Collection |
|
40 | |||
41 | /** |
||
42 | * Get all the valid frequency values. |
||
43 | * |
||
44 | * @param string|null $locale |
||
45 | * |
||
46 | * @return \Illuminate\Support\Collection |
||
47 | */ |
||
48 | 18 | public static function all(string $locale = null): Collection |
|
54 | |||
55 | /** |
||
56 | * Get the translated frequency name. |
||
57 | * |
||
58 | * @param string $key |
||
59 | * @param string|null $default |
||
60 | * @param string|null $locale |
||
61 | * |
||
62 | * @return string|mixed|null |
||
63 | */ |
||
64 | 6 | public static function get($key, $default = null, string $locale = null) |
|
68 | |||
69 | /** |
||
70 | * Check if the given frequency exists. |
||
71 | * |
||
72 | * @param string $key |
||
73 | * |
||
74 | * @return bool |
||
75 | */ |
||
76 | 6 | public static function has(string $key): bool |
|
80 | } |
||
81 |