1 | <?php |
||
5 | class ReservedKeywords extends AbstractYamlReader |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | const MAIN_KEY = 'reserved_keywords'; |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | const CASE_SENSITIVE_KEY = 'case_sensitive'; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | const CASE_INSENSITIVE_KEY = 'case_insensitive'; |
||
19 | /** |
||
20 | * List of PHP reserved keywords from config file |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $keywords; |
||
24 | /** |
||
25 | * @param string $filename |
||
26 | */ |
||
27 | 12 | protected function __construct($filename) |
|
32 | /** |
||
33 | * @param string $filename |
||
34 | * @return ReservedKeywords |
||
35 | */ |
||
36 | 12 | protected function parseReservedKeywords($filename) |
|
52 | /** |
||
53 | * @param string options's file to parse |
||
54 | * @return ReservedKeywords |
||
55 | */ |
||
56 | 680 | public static function instance($filename = null) |
|
60 | /** |
||
61 | * @param string $keyword |
||
62 | * @return bool |
||
63 | */ |
||
64 | 672 | public function is($keyword) |
|
69 | } |
||
70 |