private function poll() { static $last_check = 0; // Poll for the workflow status. Don't check more often than the polling period $now = time(); if ($last_check + Workflow::POLLING_PERIOD <= $now) { $this->fetch(); $last_check = $now; } }