"Time should be greater then zero", self::LESS_THEN_REFRESH => "Time should be greater then refresh timeout", ]; public function isValid($value, $context = null) { $value = (int) $value; if ($value <= 0) { $this->_error(self::TO_SMALL); return false; } $refreshTimeout = (int) Qs_Array::get($context, 'lockRefreshTimeout'); if ($refreshTimeout && $refreshTimeout >= $value) { $this->_error(self::LESS_THEN_REFRESH); return false; } return true; } }