name === $expectedCase || $case->value === Str::kebab($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); } }