FakeCustomerInterface.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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\TestModuleExtensionAttributes\Api\Data;
  8. /**
  9. * Customer interface.
  10. */
  11. interface FakeCustomerInterface extends \Magento\Framework\Api\CustomAttributesDataInterface
  12. {
  13. /**#@+
  14. * Constants defined for keys of the data array. Identical to the name of the getter in snake case
  15. */
  16. const ID = 'id';
  17. const EMAIL = 'email';
  18. const FIRSTNAME = 'firstname';
  19. const LASTNAME = 'lastname';
  20. const PREFIX = 'prefix';
  21. /**#@-*/
  22. /**
  23. * Get customer id
  24. *
  25. * @return int|null
  26. */
  27. public function getId();
  28. /**
  29. * Set customer id
  30. *
  31. * @param int $id
  32. * @return $this
  33. */
  34. public function setId($id);
  35. /**
  36. * Get email address
  37. *
  38. * @return string
  39. */
  40. public function getEmail();
  41. /**
  42. * Set email address
  43. *
  44. * @param string $email
  45. * @return $this
  46. */
  47. public function setEmail($email);
  48. /**
  49. * Get first name
  50. *
  51. * @return string
  52. */
  53. public function getFirstname();
  54. /**
  55. * Set first name
  56. *
  57. * @param string $firstname
  58. * @return $this
  59. */
  60. public function setFirstname($firstname);
  61. /**
  62. * Get last name
  63. *
  64. * @return string
  65. */
  66. public function getLastname();
  67. /**
  68. * Set last name
  69. *
  70. * @param string $lastname
  71. * @return $this
  72. */
  73. public function setLastname($lastname);
  74. /**
  75. * Get prefix
  76. *
  77. * @return string|null
  78. */
  79. public function getPrefix();
  80. /**
  81. * Set prefix
  82. *
  83. * @param string $prefix
  84. * @return $this
  85. */
  86. public function setPrefix($prefix);
  87. /**
  88. * Retrieve existing extension attributes object or create a new one.
  89. *
  90. * @return \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface|null
  91. */
  92. public function getExtensionAttributes();
  93. /**
  94. * Set an extension attributes object.
  95. *
  96. * @param \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface $extensionAttributes
  97. * @return $this
  98. */
  99. public function setExtensionAttributes(
  100. \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface $extensionAttributes
  101. );
  102. }