public function poll() { $function = function () { if (!isset($this->counters[__METHOD__])) { $this->counters[__METHOD__] = 0; } return $this->counters[__METHOD__]++ > 5; }; \StackFormation\Poller::poll($function, 0); }