| 1 | <?php |
||
| 9 | final class Socket implements JsonSerializable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var bool|null |
||
| 13 | */ |
||
| 14 | private $isEncrypteo; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string|null |
||
| 18 | */ |
||
| 19 | private $remoteAddress; |
||
| 20 | |||
| 21 | 2 | public function thatIsEncrypted(): self |
|
| 28 | |||
| 29 | 1 | public function thatIsNotEncrypted(): self |
|
| 36 | |||
| 37 | 1 | public function fromRemoteAddress(string $remoteAddress): self |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return mixed[] |
||
| 47 | */ |
||
| 48 | 4 | public function jsonSerialize(): array |
|
| 55 | } |
||
| 56 |