Subversion Repositories php-qbpwcf

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

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