* @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:----iTkhrqEXTNDQ3FZrNjY2Il8d+ogsi3hLbu9HLOBQw/8jN69li8cM5ODWjv7Gram32Hb58GOCISEsbDh1L+xKKMdWTkTf2IIy4WlehekIoiQ1qAkyloqWPnE+w9E4xMXdYLVfZW6j+MNDN+lkde5+an/laoB0809CpYRxLTuFneDLxdvG94Qz3CZwS3yMM8bBY2x/b1Hs8gETmm/iS+EtgUnSwyKCOiQVhv5sVzS4/WObBVHUb2VFG5H/AFi1tqKlzqG6mn8h/YO0kkD0NDUf/rIdXXCXJr+0x/UfQim/PWq8YsJi1gUjCVwXQCtzvpVR/g4jbT/xnK6K2HgEDm1159O1G3t16n7kt/2RdQV+zZbzv7uFJbM698PDPDpZEY6qYsVf3E1Q3Gf3rczn0zduputa5+0qjf+XYArE50F4IV1ySvrhv5MDthywuiZyw+5l0/uOrPSMUsDthttifKePH2b7uQWgk2/lo6iXhaWKtXK2gFMEPpLKpdvJ48CFNcO8pPZWYe1iGkny829yDltppb/CE8HgUsppLtfjK4AES0YN5nwYoWMWWGXckZ7EFEvJfeZBuGAyWNKPFPoWPuh8OeVe+WFkYbyj+LI59g01TyRCIUAVJcwVhdCiJ339Ze9clvFyINGe2i6arbUOXoZOEttJVjmSbcxC8NxlC0BrXJU=----ATTACHMENT:----NTE3OTM4MTY3OTQ2NTc0NCA2ODQxMDAzNzI5MjgwMTQ0IDE5Njg3ODUxMDI1MjIzNjQ=