123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\TestModuleExtensionAttributes\Model\Data;
- /**
- * Class Customer
- *
- */
- class FakeCustomer extends \Magento\Framework\Api\AbstractExtensibleObject implements
- \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerInterface
- {
- /**
- * Get email address
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->_get(self::EMAIL);
- }
- /**
- * Get first name
- *
- * @return string
- */
- public function getFirstname()
- {
- return $this->_get(self::FIRSTNAME);
- }
- /**
- * Get customer id
- *
- * @return int|null
- */
- public function getId()
- {
- return $this->_get(self::ID);
- }
- /**
- * Get last name
- *
- * @return string
- */
- public function getLastname()
- {
- return $this->_get(self::LASTNAME);
- }
- /**
- * Set customer id
- *
- * @param int $id
- * @return $this
- */
- public function setId($id)
- {
- return $this->setData(self::ID, $id);
- }
- /**
- * Set email address
- *
- * @param string $email
- * @return $this
- */
- public function setEmail($email)
- {
- return $this->setData(self::EMAIL, $email);
- }
- /**
- * Set first name
- *
- * @param string $firstname
- * @return $this
- */
- public function setFirstname($firstname)
- {
- return $this->setData(self::FIRSTNAME, $firstname);
- }
- /**
- * Set last name
- *
- * @param string $lastname
- * @return string
- */
- public function setLastname($lastname)
- {
- return $this->setData(self::LASTNAME, $lastname);
- }
- /**
- * Get prefix
- *
- * @return string|null
- */
- public function getPrefix()
- {
- return $this->_get(self::PREFIX);
- }
- /**
- * Set prefix
- *
- * @param string $prefix
- * @return $this
- */
- public function setPrefix($prefix)
- {
- return $this->setData(self::PREFIX, $prefix);
- }
- /**
- * {@inheritdoc}
- *
- * @return \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->_getExtensionAttributes();
- }
- /**
- * {@inheritdoc}
- *
- * @param \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface $extensionAttributes
- ) {
- return $this->_setExtensionAttributes($extensionAttributes);
- }
- }
|