Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/framework/GraphQl/Schema/Type/Output/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/GraphQl/Schema/Type/Output/OutputUnionObject.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\GraphQl\Schema\Type\Output;

use Magento\Framework\GraphQl\Config\Element\UnionType as UnionElement;
use Magento\Framework\GraphQl\Schema\Type\UnionType;

/**
 * The 'union' type compatible with GraphQL schema generator.
 */
class OutputUnionObject extends UnionType
{
    /**
     * @param ElementMapper $elementMapper
     * @param UnionElement $configElement
     */
    public function __construct(
        ElementMapper $elementMapper,
        UnionElement $configElement
    ) {
        parent::__construct($elementMapper->buildSchemaArray($configElement, $this));
    }
}