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 . ')';