private function initializeInternalTypes(): void
    {
        $phpToGraphQLMapping = [
            // PHP types
            'id' => Type::id(),
            'bool' => Type::boolean(),
            'int' => Type::int(),
            'float' => Type::float(),
            'string' => Type::string(),

            // Doctrine types
            'boolean' => Type::boolean(),
            'integer' => Type::int(),
            'smallint' => Type::int(),
            'bigint' => Type::int(),
            'decimal' => Type::string(),
            'text' => Type::string(),
        ];

        $this->types = $phpToGraphQLMapping;
        $this->registerInstance(new LogicalOperatorType());
        $this->registerInstance(new JoinTypeType());
        $this->registerInstance(new SortingOrderType());
    }
private function initializeInternalTypes(): void
    {
        $phpToGraphQLMapping = [
            // PHP types
            'id' => Type::id(),
            'bool' => Type::boolean(),
            'int' => Type::int(),
            'float' => Type::float(),
            'string' => Type::string(),

            // Doctrine types
            'boolean' => Type::boolean(),
            'integer' => Type::int(),
            'smallint' => Type::int(),
            'bigint' => Type::int(),
            'decimal' => Type::string(),
            'text' => Type::string(),
        ];

        $this->types = $phpToGraphQLMapping;
        $this->registerInstance(new LogicalOperatorType());
        $this->registerInstance(new JoinTypeType());
        $this->registerInstance(new SortingOrderType());
    }
private function initializeInternalTypes ( ) : void { $ phpToGraphQLMapping = [ // PHP types 'id' => Type :: id ( ) , 'bool' => Type :: boolean ( ) , 'int' => Type :: int ( ) , 'float' => Type :: float ( ) , 'string' => Type :: string ( ) , // Doctrine types 'boolean' => Type :: boolean ( ) , 'integer' => Type :: int ( ) , 'smallint' => Type :: int ( ) , 'bigint' => Type :: int ( ) , 'decimal' => Type :: string ( ) , 'text' => Type :: string ( ) , ] ; $ this -> types = $ phpToGraphQLMapping ; $ this -> registerInstance ( new LogicalOperatorType ( ) ) ; $ this -> registerInstance ( new JoinTypeType ( ) ) ; $ this -> registerInstance ( new SortingOrderType ( ) ) ; }
Initialize internal types for common needs
Initialize internal types for common needs