Connection.php 401 B

1234567891011121314151617181920
  1. <?php
  2. namespace Ratchet\Mock;
  3. use Ratchet\ConnectionInterface;
  4. class Connection implements ConnectionInterface {
  5. public $last = array(
  6. 'send' => ''
  7. , 'close' => false
  8. );
  9. public $remoteAddress = '127.0.0.1';
  10. public function send($data) {
  11. $this->last[__FUNCTION__] = $data;
  12. }
  13. public function close() {
  14. $this->last[__FUNCTION__] = true;
  15. }
  16. }