Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
_files
Magento
TestModuleExtensionAttributes
Model
FakeCustomer.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\TestModuleExtensionAttributes\Api\Model
;
9
14
class
FakeCustomer
extends
\Magento\Framework\Api\AbstractExtensibleObject
implements
15
\Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerInterface
16
{
22
public
function
getId
()
23
{
24
return
$this->
_get
(self::ID);
25
}
26
32
public
function
getEmail
()
33
{
34
return
$this->
_get
(self::EMAIL);
35
}
36
42
public
function
getFirstname
()
43
{
44
return
$this->
_get
(self::FIRSTNAME);
45
}
46
52
public
function
getLastname
()
53
{
54
return
$this->
_get
(self::LASTNAME);
55
}
56
62
public
function
getPrefix
()
63
{
64
return
$this->
_get
(self::PREFIX);
65
}
66
73
public
function
setId
(
$id
)
74
{
75
return
$this->
setData
(self::ID,
$id
);
76
}
77
84
public
function
setEmail
(
$email
)
85
{
86
return
$this->
setData
(self::EMAIL,
$email
);
87
}
88
95
public
function
setFirstname
($firstname)
96
{
97
return
$this->
setData
(self::FIRSTNAME, $firstname);
98
}
99
106
public
function
setLastname
($lastname)
107
{
108
return
$this->
setData
(self::LASTNAME, $lastname);
109
}
110
117
public
function
setPrefix
(
$prefix
)
118
{
119
return
$this->
setData
(self::PREFIX,
$prefix
);
120
}
121
127
public
function
getExtensionAttributes
()
128
{
129
return
$this->
_getExtensionAttributes
();
130
}
131
138
public
function
setExtensionAttributes
(
139
\
Magento
\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface
$extensionAttributes
140
) {
141
return
$this->
_setExtensionAttributes
($extensionAttributes);
142
}
143
}
Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerInterface
Definition:
FakeCustomerInterface.php:13
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getPrefix
getPrefix()
Definition:
FakeCustomer.php:62
Magento\Framework\Api\AbstractExtensibleObject\_setExtensionAttributes
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
Definition:
AbstractExtensibleObject.php:190
$email
$email
Definition:
details.phtml:13
$id
$id
Definition:
fieldset.phtml:14
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getLastname
getLastname()
Definition:
FakeCustomer.php:52
Magento\TestModuleExtensionAttributes\Api\Model
Definition:
FakeAttributeMetadata.php:8
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getEmail
getEmail()
Definition:
FakeCustomer.php:32
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setPrefix
setPrefix($prefix)
Definition:
FakeCustomer.php:117
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer
Definition:
FakeCustomer.php:14
$prefix
$prefix
Definition:
name.phtml:25
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setLastname
setLastname($lastname)
Definition:
FakeCustomer.php:106
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getId
getId()
Definition:
FakeCustomer.php:22
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getFirstname
getFirstname()
Definition:
FakeCustomer.php:42
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setEmail
setEmail($email)
Definition:
FakeCustomer.php:84
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setId
setId($id)
Definition:
FakeCustomer.php:73
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\getExtensionAttributes
getExtensionAttributes()
Definition:
FakeCustomer.php:127
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setExtensionAttributes
setExtensionAttributes(\Magento\TestModuleExtensionAttributes\Api\Data\FakeCustomerExtensionInterface $extensionAttributes)
Definition:
FakeCustomer.php:138
Magento\Framework\Api\AbstractExtensibleObject\_getExtensionAttributes
_getExtensionAttributes()
Definition:
AbstractExtensibleObject.php:164
Magento\Framework\Api\AbstractExtensibleObject
Definition:
AbstractExtensibleObject.php:17
Magento\TestModuleExtensionAttributes\Api\Model\FakeCustomer\setFirstname
setFirstname($firstname)
Definition:
FakeCustomer.php:95