1 | <?php |
||
28 | class KeyParser extends AbstractParser |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * Parses a .env key |
||
33 | * |
||
34 | * @param string $key The key string |
||
35 | * @param int $line_num The line num of the key |
||
36 | * |
||
37 | * @throws \M1\Env\Exception\ParseException If key contains a character that isn't alphanumeric or a _ |
||
38 | * |
||
39 | * @return string|false The parsed key, or false if the key is a comment |
||
40 | */ |
||
41 | 36 | public function parse($key, $line_num) |
|
61 | } |