From d5f7013247535a38cbdf5050b85681e10cc954a9 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Sun, 6 Oct 2024 23:15:35 +0200 Subject: [PATCH] remove not needed methods --- src/Generator/Type/GraphQL.php | 11 ----------- src/Generator/Type/MarkupAbstract.php | 10 ---------- src/Generator/Type/Protobuf.php | 10 ---------- 3 files changed, 31 deletions(-) diff --git a/src/Generator/Type/GraphQL.php b/src/Generator/Type/GraphQL.php index 7c6abe3f..1e166998 100644 --- a/src/Generator/Type/GraphQL.php +++ b/src/Generator/Type/GraphQL.php @@ -60,17 +60,6 @@ protected function getMap(string $type): string return '[' . $type . ']'; } - protected function getUnion(array $types): string - { - return implode(' | ', $types); - } - - protected function getIntersection(array $types): string - { - // in GraphQL there is no intersection type - return implode(' | ', $types); - } - protected function getGroup(string $type): string { return '(' . $type . ')'; diff --git a/src/Generator/Type/MarkupAbstract.php b/src/Generator/Type/MarkupAbstract.php index 4cb6a660..770979d5 100644 --- a/src/Generator/Type/MarkupAbstract.php +++ b/src/Generator/Type/MarkupAbstract.php @@ -76,16 +76,6 @@ protected function getMap(string $type): string return 'Map (' . $type . ')'; } - protected function getUnion(array $types): string - { - return implode(' | ', $types); - } - - protected function getIntersection(array $types): string - { - return implode(' & ', $types); - } - protected function getGroup(string $type): string { return '(' . $type . ')'; diff --git a/src/Generator/Type/Protobuf.php b/src/Generator/Type/Protobuf.php index 72854a72..cc795c5d 100644 --- a/src/Generator/Type/Protobuf.php +++ b/src/Generator/Type/Protobuf.php @@ -70,16 +70,6 @@ protected function getMap(string $type): string return 'map'; } - protected function getUnion(array $types): string - { - return 'Struct'; - } - - protected function getIntersection(array $types): string - { - return 'Struct'; - } - protected function getGroup(string $type): string { return '(' . $type . ')';