/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/_files/Magento/TestModuleExtensionAttributes/Model/FakeCustomer.php
143 строки
3 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?php /** * Copyright 2018 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\TestModuleExtensionAttributes\Api\Model; /** * Class Customer * */ class FakeCustomer extends \Magento\Framework\Api\AbstractExtensibleObject implements \Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerInterface { /** * Get customer id * * @return int|null */ public function getId() { return $this->_get(self::ID); } /** * 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 last name * * @return string */ public function getLastname() { return $this->_get(self::LASTNAME); } /** * Get prefix * * @return string|null */ public function getPrefix() { return $this->_get(self::PREFIX); } /** * 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); } /** * 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); } }