* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class GraphQL extends GeneratorAbstract { protected function getString(): string { return 'String'; } protected function getInteger(): string { return 'Int'; } protected function getNumber(): string { return 'Float'; } protected function getBoolean(): string { return 'Boolean'; } protected function getArray(string $type): string { return '[' . $type . ']'; } protected function getMap(string $type): string { // in GraphQL there is no map type 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 . ')'; } protected function getGeneric(array $types): string { return ''; } protected function getAny(): string { return 'Any'; } protected function getNamespaced(string $namespace, string $name): string { return $namespace . '/' . $name; } } __halt_compiler();----SIGNATURE:----sdWmu26Vqdn7GrDNcNjR4wf+r2x5eFSA6E8IwTGq+hi4xilAPlRgv1v8fy5Ly+3qf93NqwcQu1vvO+M+9EGiUk/Ab7kpRtUWVCT/8lBV03jaJg8KghiHem6kwedZdnI7ab27SfADU5jATq7xeGyLy7PATKv9uRio3LrgFO4Ckb2NxvnAcYOvwR1sJIcQ/WgjxUfuA+aXukfYmBR4DjawYjqdinnHWiOxJePiTWs0Z4xo6J5w/msr6XZ5ftnDCA76crlSqBqwpYxisWeuVADjXAxGdc4kHdbT0M1xEXFRt9dI2M6f/6klXxBy7lP89hrzb16qQMlH6pSCpSsVsca24YxRvx7sj3llMrNgqClmQKdWmUnM14LtZ3ObGSp9Tesvoxfsl7aGMrNybjrptwkOIYsKezJhNL7iNPzBfebXmQkYjpA7/CBtxixlpqZSArJrO7ijDSjyNu125K/2RVvQWJzFjluah5AkWgobCyqqXswsO4voaCkx07HyPRjX7h3Ild3x4yXbB+1HqXnwf4k03FHw1Gw8K3YkkLlJXHmhakBzcqwgqThaORuLu7mmUUBfNquz0dNmXWIkAT67ekk3FLlOAOE6FdGkAx9ZTrcoXRJdD3bquMAamaq1/hZgdQWHdo6An2WdSu91IvIpznDmFmpRTzOX3rEtSxOi3wqeb00=----ATTACHMENT:----MjQ0ODg0OTczNjA0MDY2NSAxODU3NjUyMzkyODcyMTg1IDM1NzEyMDk3MDU3MDg4NDU=