Example #1
0
 public function __construct(int $id, string $uri, string $autoloadFile)
 {
     parent::__construct();
     $this->id = $id;
     $this->uri = $uri;
     $this->autoloadFile = $autoloadFile;
 }
Example #2
0
 public function __construct(int $id, $socket, Thread $thread)
 {
     parent::__construct();
     $this->id = $id;
     $this->socket = new SocketStream($socket);
     $this->transmitter = new SocketTransmitter($this->socket);
     $this->thread = $thread;
 }