TestDataObject.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Reflection\Test\Unit;
  7. class TestDataObject implements TestDataInterface
  8. {
  9. private $extensionAttributes;
  10. /**
  11. * TestDataObject constructor.
  12. * @param null $extensionAttributes
  13. */
  14. public function __construct($extensionAttributes = null)
  15. {
  16. $this->extensionAttributes = $extensionAttributes;
  17. }
  18. /**
  19. * @return string
  20. */
  21. public function getId()
  22. {
  23. return '1';
  24. }
  25. /**
  26. * @return string
  27. */
  28. public function getAddress()
  29. {
  30. return 'someAddress';
  31. }
  32. /**
  33. * @return string
  34. */
  35. public function isDefaultShipping()
  36. {
  37. return 'true';
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function isRequiredBilling()
  43. {
  44. return 'false';
  45. }
  46. /**
  47. * @return \Magento\Framework\Api\ExtensionAttributesInterface|null
  48. */
  49. public function getExtensionAttributes()
  50. {
  51. return $this->extensionAttributes;
  52. }
  53. }