| Current Path : /home/rtorresani/www/vendor/magento/framework/GraphQl/Schema/Type/Enum/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/GraphQl/Schema/Type/Enum/DataMapperInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\GraphQl\Schema\Type\Enum;
/**
* Produces mapped name to values for the Enum types to be map them against the data that comes from a database.
*
* @api
*/
interface DataMapperInterface
{
/**
* Return GraphQL enum types with name-values pairs that map to the definition of the graphql schema
*
* @param string $enumName
* @return string[]
*/
public function getMappedEnums(string $enumName): array;
}