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