src/Leevel/Database/Ddd/Entity.php
public static function isSupportEvent(string $event): void
    {
        if (!in_array($event, static::supportEvent(), true)) {
            $e = sprintf('Event `%s` do not support.');

            throw new InvalidArgumentException($e);
        }
    }
public static function isSupportEvent(string $event): void
    {
        if (!in_array($event, static::supportEvent(), true)) {
            $e = sprintf('Event `%s` do not support.');

            throw new InvalidArgumentException($e);
        }
    }
验证事件是否受支持

@param string $event