| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ServerStartEvent extends Event |
||
|
|
|||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var SocketInterface |
||
| 21 | */ |
||
| 22 | private $socket; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * ServerStartEvent constructor. |
||
| 26 | * |
||
| 27 | * @param SocketInterface $socket |
||
| 28 | */ |
||
| 29 | 4 | public function __construct(SocketInterface $socket) |
|
| 30 | { |
||
| 31 | 4 | $this->socket = $socket; |
|
| 32 | 4 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return SocketInterface |
||
| 36 | */ |
||
| 37 | public function getSocket(): SocketInterface |
||
| 40 | } |
||
| 41 | } |
||
| 42 |