| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function parseSymbol(FormatToken $token, FormatParserInterface $parser) |
||
| 37 | { |
||
| 38 | if ($token->is('y')) { |
||
| 39 | $converter = $this->converter; |
||
| 40 | |||
| 41 | // y A two digit representation of a year |
||
| 42 | $lexer = new PregSimple($token, '[\\/*]?[!^]*[A-Z]*\d+'); |
||
| 43 | $lexer->setCallback(function (PregSimple $lexer, $value) use ($converter) { |
||
| 44 | return $converter->from($value); |
||
| 45 | }); |
||
| 46 | |||
| 47 | return $lexer; |
||
| 48 | } |
||
| 51 |