| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class SocketMessageRouter extends SocketHandler |
||
| 13 | { |
||
| 14 | use HasPipeline; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Call this method to get singleton |
||
| 18 | * |
||
| 19 | * @return SocketMessageRouter |
||
| 20 | */ |
||
| 21 | public static function getInstance(): SocketMessageRouter |
||
| 30 | } |
||
| 31 | |||
| 32 | private function __construct() |
||
| 34 | |||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @internal This method also leave the $parsedData property set to the instance. |
||
| 39 | * |
||
| 40 | * @param string $data |
||
| 41 | * @return ActionInterface |
||
| 42 | * |
||
| 43 | * @throws InvalidArgumentException|InvalidActionException |
||
| 44 | */ |
||
| 45 | public function parseData(string $data) : ActionInterface |
||
| 55 |