D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
vendor
/
plesk
/
ratchetphp
/
tests
/
helpers
/
Ratchet
/
Mock
/
Filename :
ConnectionDecorator.php
back
Copy
<?php namespace Ratchet\Mock; use Ratchet\AbstractConnectionDecorator; class ConnectionDecorator extends AbstractConnectionDecorator { public array $last = [ 'write' => '' , 'end' => false ]; public function send($data): void { $this->last[__FUNCTION__] = $data; $this->getConnection()->send($data); } public function close(): void { $this->last[__FUNCTION__] = true; $this->getConnection()->close(); } }