TokenUiComponent.php 836 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Vault\Model\Ui;
  7. class TokenUiComponent implements TokenUiComponentInterface
  8. {
  9. /**
  10. * @var array
  11. */
  12. private $config;
  13. /**
  14. * @var string
  15. */
  16. private $name;
  17. /**
  18. * @param array $config
  19. * @param string $name
  20. */
  21. public function __construct(
  22. array $config,
  23. $name
  24. ) {
  25. $this->config = $config;
  26. $this->name = $name;
  27. }
  28. /**
  29. * Returns component configuration
  30. *
  31. * @return array
  32. */
  33. public function getConfig()
  34. {
  35. return $this->config;
  36. }
  37. /**
  38. * Returns component name
  39. *
  40. * @return string
  41. */
  42. public function getName()
  43. {
  44. return $this->name;
  45. }
  46. }