%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/kma/vendor/cboden/ratchet/tests/helpers/Ratchet/Mock/
Upload File :
Create Path :
Current File : /home/ugotscom/kma/vendor/cboden/ratchet/tests/helpers/Ratchet/Mock/ConnectionDecorator.php

<?php
namespace Ratchet\Mock;
use Ratchet\AbstractConnectionDecorator;

class ConnectionDecorator extends AbstractConnectionDecorator {
    public $last = array(
        'write' => ''
      , 'end'   => false
    );

    public function send($data) {
        $this->last[__FUNCTION__] = $data;

        $this->getConnection()->send($data);
    }

    public function close() {
        $this->last[__FUNCTION__] = true;

        $this->getConnection()->close();
    }
}

Zerion Mini Shell 1.0