OutputFieldInterface.php 705 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Framework\GraphQl\Config\Element;
  8. /**
  9. * Defines contract for output fields data as GraphQL objects.
  10. */
  11. interface OutputFieldInterface extends FieldInterface
  12. {
  13. /**
  14. * Get the resolver for a given field. If no resolver is specified, return an empty string.
  15. *
  16. * @return string
  17. */
  18. public function getResolver() : string;
  19. /**
  20. * Get the list of arguments configured for the field. Return an empty array if no arguments are configured.
  21. *
  22. * @return Argument[]
  23. */
  24. public function getArguments() : array;
  25. }