Pantheon\Terminus\Models\Workflow::poll PHP Метод

poll() приватный Метод

Fetches this object from Pantheon. Waits a given length of time between checks.
private poll ( ) : void
Результат void
    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;
        }
    }