コード例 #1
0
ファイル: ProcessWorker.php プロジェクト: koolkode/async
 public function __construct(int $id, string $uri, string $autoloadFile)
 {
     parent::__construct();
     $this->id = $id;
     $this->uri = $uri;
     $this->autoloadFile = $autoloadFile;
 }
コード例 #2
0
ファイル: ThreadWorker.php プロジェクト: koolkode/async
 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;
 }