404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.188.103.42: ~ $
<?php
namespace Ratchet;

/**
 * Wraps ConnectionInterface objects via the decorator pattern but allows
 * parameters to bubble through with magic methods
 * @todo It sure would be nice if I could make most of this a trait...
 */
abstract class AbstractConnectionDecorator implements ConnectionInterface {
    /**
     * @var ConnectionInterface
     */
    protected $wrappedConn;

    public function __construct(ConnectionInterface $conn) {
        $this->wrappedConn = $conn;
    }

    /**
     * @return ConnectionInterface
     */
    protected function getConnection() {
        return $this->wrappedConn;
    }

    public function __set($name, $value) {
        $this->wrappedConn->$name = $value;
    }

    public function __get($name) {
        return $this->wrappedConn->$name;
    }

    public function __isset($name) {
        return isset($this->wrappedConn->$name);
    }

    public function __unset($name) {
        unset($this->wrappedConn->$name);
    }
}

Filemanager

Name Type Size Permission Actions
Http Folder 0755
Server Folder 0755
Session Folder 0755
Wamp Folder 0755
WebSocket Folder 0755
AbstractConnectionDecorator.php File 979 B 0644
App.php File 5.15 KB 0644
ComponentInterface.php File 1.21 KB 0644
ConnectionInterface.php File 516 B 0644
MessageComponentInterface.php File 111 B 0644
MessageInterface.php File 402 B 0644