Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function parse(ParserState $state) |
||
33 | { |
||
34 | $characters = $state->getCharacters(); |
||
35 | $keyName = ''; |
||
36 | |||
37 | while($this->canParseKey($characters)) { |
||
38 | $keyName .= array_shift($characters); |
||
39 | } |
||
40 | |||
41 | return new ParseResult( |
||
42 | new ParserState($characters, $state->getBraceCount(), false, true), |
||
43 | new Key($keyName) |
||
44 | ); |
||
45 | } |
||
46 | |||
56 |