Hprose\Swoole\Socket\Service::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        parent::__construct();
        $this->timer = new Timer();
    }

Usage Example

Пример #1
0
 public function __construct($uri, $mode = SWOOLE_BASE)
 {
     parent::__construct();
     $url = $this->parseUrl($uri);
     $this->type = $url->type;
     $this->server = new swoole_server($url->host, $url->port, $mode, $url->type);
 }