src/Entity/Fields/Traits/String/EnumFieldTrait.php
private function setEnum(string $enum): self
    {
        $this->updatePropertyValue(
            EnumFieldInterface::PROP_ENUM,
            $enum
        );

        return $this;
    }
private function setEnum(string $enum): self
    {
        $this->updatePropertyValue(
            EnumFieldInterface::PROP_ENUM,
            $enum
        );

        return $this;
    }
private function setEnum ( string $ enum ) : self { $ this -> updatePropertyValue ( EnumFieldInterface :: PROP_ENUM , $ enum ) ; return $ this ; }
Uses the Symfony Validator and fails back to basic in_array validation with exception

@param string $enum

@return self
Uses the Symfony Validator and fails back to basic in_array validation with exception