name === $expectedCase || Str::pascal($case->value) === $expectedCase) { return $this === $case; } } throw new BadMethodCallException("Method {$method} does not exist on ".self::class); } throw new BadMethodCallException("Method {$method} does not exist on ".self::class); } }