FormElement.php 583 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Ui\DataProvider\Mapper;
  7. /**
  8. * Class FormElement
  9. */
  10. class FormElement implements MapperInterface
  11. {
  12. /**
  13. * @var array
  14. */
  15. protected $mappings = [];
  16. /**
  17. * @param array $mappings
  18. */
  19. public function __construct(array $mappings)
  20. {
  21. $this->mappings = $mappings;
  22. }
  23. /**
  24. * Retrieve mappings
  25. *
  26. * @return array
  27. */
  28. public function getMappings()
  29. {
  30. return $this->mappings;
  31. }
  32. }