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