public function onResponse($cb) { if ($cb === null && !$this->noSAF) { return; } $this->onResponse->push($cb); $this->checkFree(); }