code: public function guard($value, Field $field)
      {
          /** @var Enum $value */
          Assertion::isInstanceOf($value, Enum::class, null, $field->getName());
          Assertion::isInstanceOf($value, $field->getClassName(), null, $field->getName());
          Assertion::integer($value->getValue(), null, $field->getName());
          Assertion::range($value->getValue(), $this->getMin(), $this->getMax(), null, $field->getName());
      }
docs: {@inheritdoc}