| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class MessageEvent extends ServerStartEvent |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $remote; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $message; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * MessageEvent constructor. |
||
| 30 | * |
||
| 31 | * @param SocketInterface $socket |
||
| 32 | * @param string $remote |
||
| 33 | * @param string $message |
||
| 34 | */ |
||
| 35 | public function __construct(SocketInterface $socket, string $remote, string $message) |
||
| 36 | { |
||
| 37 | parent::__construct($socket); |
||
| 38 | $this->remote = $remote; |
||
| 39 | $this->message = $message; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getRemote(): string |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getMessage(): string |
||
| 58 |