Metabor\Statemachine\Condition\Timeout::checkCondition PHP Метод

checkCondition() публичный Метод

public checkCondition ( $subject, ArrayAccess $context )
$context ArrayAccess
    public function checkCondition($subject, \ArrayAccess $context)
    {
        // clone date to not change original object
        $date = clone $this->getLastStateHasChangedDate($subject, $context);
        $date->add($this->getDateInterval());
        return $date <= new \DateTime();
    }