1 | <?php |
||
14 | class StateChangeParser |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Parses the specified log message notifications into state change objects |
||
19 | * |
||
20 | * @param LogMessageNotification[] $logMessages |
||
21 | * |
||
22 | * @return StateChange[] eventual state changes parsed |
||
23 | */ |
||
24 | 2 | public static function parseStateChanges(array $logMessages) |
|
38 | |||
39 | |||
40 | /** |
||
41 | * Attempts to parse the specified log message into a state change object |
||
42 | * |
||
43 | * @param string $message |
||
44 | * |
||
45 | * @return StateChange|null |
||
46 | */ |
||
47 | 2 | private static function parseMessage($message) |
|
67 | |||
68 | |||
69 | /** |
||
70 | * Parses the specified partial log message into a decimal subscription ID |
||
71 | * |
||
72 | * @param string $messagePart |
||
73 | * |
||
74 | * @return int |
||
75 | */ |
||
76 | 2 | private static function getSubscriptionId($messagePart) |
|
80 | |||
81 | } |
||
82 |