1 | <?php namespace Arcanedev\LaravelSitemap\Entities; |
||
12 | class ChangeFrequency implements ChangeFrequencyContract |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Main Methods |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Get all the valid frequency keys. |
||
21 | * |
||
22 | * @return \Illuminate\Support\Collection |
||
23 | */ |
||
24 | 10 | public static function keys() |
|
36 | |||
37 | /** |
||
38 | * Get all the valid frequency values. |
||
39 | * |
||
40 | * @param string|null $locale |
||
41 | * |
||
42 | * @return \Illuminate\Support\Collection |
||
43 | */ |
||
44 | public static function all($locale = null) |
||
50 | |||
51 | /** |
||
52 | * Get the translated frequency name. |
||
53 | * |
||
54 | * @param string $key |
||
55 | * @param string|null $default |
||
56 | * @param string|null $locale |
||
57 | * |
||
58 | * @return string|null |
||
59 | */ |
||
60 | 2 | public static function get($key, $default = null, $locale = null) |
|
64 | |||
65 | /** |
||
66 | * Check if the given frequency exists. |
||
67 | * |
||
68 | * @param string $key |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | 2 | public static function has($key) |
|
76 | } |
||
77 |