*/ public function userTypes(): array { return match ($this) { self::ASSOCIADO => [UserTypeEnum::ASSOCIADO], self::PARCEIRO => [UserTypeEnum::PARCEIRO], self::TODOS => [UserTypeEnum::ASSOCIADO, UserTypeEnum::PARCEIRO], }; } public function accepts(UserTypeEnum $userType): bool { return in_array($userType, $this->userTypes(), true); } }