InterpreterInterface.php 541 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Data\Argument;
  7. /**
  8. * Interface that encapsulates complexity of expression computation
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface InterpreterInterface
  14. {
  15. /**
  16. * Compute and return effective value of an argument
  17. *
  18. * @param array $data
  19. * @return mixed
  20. * @throws \InvalidArgumentException
  21. * @throws \UnexpectedValueException
  22. */
  23. public function evaluate(array $data);
  24. }