1 | <?php namespace Arcanedev\LaravelSitemap\Entities; |
||
11 | class SitemapFrequency implements SitemapFrequencyContract |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Main Functions |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Get all the valid frequency keys. |
||
19 | * |
||
20 | * @return array |
||
21 | */ |
||
22 | 24 | public static function keys() |
|
28 | |||
29 | /** |
||
30 | * Get all the valid frequency values. |
||
31 | * |
||
32 | * @param string|null $locale |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public static function all($locale = null) |
||
42 | |||
43 | /** |
||
44 | * Get the translated frequency name. |
||
45 | * |
||
46 | * @param string $key |
||
47 | * @param string|null $locale |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | 8 | public static function get($key, $locale = null) |
|
55 | |||
56 | /** |
||
57 | * Check if the frequency is valid value. |
||
58 | * |
||
59 | * @param string $key |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | 8 | public static function exists($key) |
|
67 | } |
||
68 |