| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class ReplyParser implements InlineParserInterface |
||
| 14 | { |
||
| 15 | // Regex used to match Replies |
||
| 16 | public const REGEXP_REPLY = '\@(?<user>[\w]{4,20})\#(?<post>[0-9]{1,16})'; |
||
| 17 | |||
| 18 | public function getMatchDefinition(): InlineParserMatch |
||
| 19 | { |
||
| 20 | return InlineParserMatch::regex(self::REGEXP_REPLY); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function parse(InlineParserContext $inlineContext): bool |
||
| 44 | } |
||
| 45 | } |
||
| 46 |