1 | <?php |
||
5 | class AbstractReservedKeywords 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 | protected function __construct($filename) |
||
32 | /** |
||
33 | * @param string $filename |
||
34 | * @return AbstractReservedKeywords |
||
35 | */ |
||
36 | protected function parseReservedKeywords($filename) |
||
48 | /** |
||
49 | * @throws \InvalidArgumentException |
||
50 | * @param string options's file to parse |
||
51 | * @return AbstractReservedKeywords |
||
52 | */ |
||
53 | public static function instance($filename = null) |
||
57 | /** |
||
58 | * @param string $keyword |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function is($keyword) |
||
66 | } |
||
67 |