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
module-customer
Model
Data
Option.php
Go to the documentation of this file.
1
<?php
9
namespace
Magento\Customer\Model\Data
;
10
14
class
Option
extends
\Magento\Framework\Api\AbstractSimpleObject
implements
15
\Magento\Customer\Api\Data\OptionInterface
16
{
22
public
function
getLabel
()
23
{
24
return
$this->
_get
(self::LABEL);
25
}
26
32
public
function
getValue
()
33
{
34
return
$this->
_get
(self::VALUE);
35
}
36
42
public
function
getOptions
()
43
{
44
return
$this->
_get
(self::OPTIONS);
45
}
46
53
public
function
setLabel
(
$label
)
54
{
55
return
$this->
setData
(self::LABEL,
$label
);
56
}
57
64
public
function
setValue
(
$value
)
65
{
66
return
$this->
setData
(self::VALUE,
$value
);
67
}
68
75
public
function
setOptions
(array
$options
=
null
)
76
{
77
return
$this->
setData
(self::OPTIONS,
$options
);
78
}
79
}
Magento\Customer\Model\Data\Option\setLabel
setLabel($label)
Definition:
Option.php:53
Magento\Customer\Model\Data\Option\getValue
getValue()
Definition:
Option.php:32
Magento\Customer\Model\Data\Option\setValue
setValue($value)
Definition:
Option.php:64
Magento\Framework\Api\AbstractSimpleObject
Definition:
AbstractSimpleObject.php:12
Magento\Customer\Model\Data\Option\setOptions
setOptions(array $options=null)
Definition:
Option.php:75
Magento\Customer\Model\Data
Definition:
Address.php:8
$label
$label
Definition:
details.phtml:21
Magento\Customer\Model\Data\Option\getLabel
getLabel()
Definition:
Option.php:22
$value
$value
Definition:
gender.phtml:16
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
Magento\Customer\Model\Data\Option
Definition:
Option.php:14
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\Customer\Api\Data\OptionInterface
Definition:
OptionInterface.php:15
$options
$options
Definition:
multiple_mixed_products.php:29
Magento\Customer\Model\Data\Option\getOptions
getOptions()
Definition:
Option.php:42