protected function __construct($cb, $timeout = null, $context = null) { $this->cb = $cb; $this->context = $context; if ($timeout !== null) { $this->setTimeout($timeout); } }