1 | <?php |
||
7 | class LineKey |
||
8 | { |
||
9 | private static $excludedSources; |
||
10 | private $key; |
||
11 | 38 | ||
12 | 32 | public function __construct($key) |
|
18 | 26 | ||
19 | 9 | public static function fromString($key) |
|
23 | |||
24 | 17 | public function get() |
|
28 | 26 | ||
29 | /** |
||
30 | * Get suggestion for a label based on the key |
||
31 | 26 | * |
|
32 | * @return string |
||
33 | 26 | */ |
|
34 | 17 | public function getAsLabel() |
|
43 | |||
44 | 30 | /** |
|
45 | * Get Page identifier. |
||
46 | 30 | * This is the first segment of the key |
|
47 | * |
||
48 | * @return string |
||
49 | 34 | */ |
|
50 | 28 | public function getPageKey() |
|
54 | 38 | ||
55 | 9 | public function isExcludedSource() |
|
61 | |||
62 | 30 | private function sanitizeKey($key) |
|
66 | |||
67 | 32 | private function validateKey($key) |
|
73 | |||
74 | 9 | private function getExcludedSources() |
|
83 | |||
84 | } |
||
85 |