is($enum); } public function in(array $enums): bool { return [] !== array_filter($enums, fn (mixed $enum) => $this->is($enum)); } public function notIn(array $enums): bool { return ! $this->in($enums); } }