Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class FSEventParser |
||
11 | { |
||
12 | protected const REGEX = '/^([\S+]{3}\s+[\S+]{3}\s+[\d+]{1,2}\s+[\d+]{2}:[\d+]{2}:{0,2}:[\d+]{2}:{0,2}\s+[\d+]{0,4})\s*(\/[\S+]*)\s+([\S+*\s+]*)/mi'; |
||
13 | |||
14 | protected const DATE = 1; |
||
15 | protected const PATH = 2; |
||
16 | protected const EVENTS = 3; |
||
17 | |||
18 | /** |
||
19 | * @param string $event |
||
20 | * |
||
21 | * @return \SwooleTW\Http\HotReload\FSEvent |
||
22 | */ |
||
23 | public static function toEvent(string $event): ?FSEvent |
||
36 | } |
||
37 | } |