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-quote
Model
Cart
TotalSegment.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Quote\Model\Cart
;
7
8
use
Magento\Quote\Api\Data\TotalSegmentInterface
;
9
use
Magento\Framework\Model\AbstractExtensibleModel
;
10
16
class
TotalSegment
extends
AbstractExtensibleModel
implements
TotalSegmentInterface
17
{
21
public
function
getCode
()
22
{
23
return
$this->
getData
(self::CODE);
24
}
25
29
public
function
setCode
(
$code
)
30
{
31
return
$this->
setData
(self::CODE,
$code
);
32
}
33
37
public
function
getValue
()
38
{
39
return
$this->
getData
(self::VALUE);
40
}
41
45
public
function
setValue
(
$value
)
46
{
47
return
$this->
setData
(self::VALUE,
$value
);
48
}
49
53
public
function
getTitle
()
54
{
55
return
$this->
getData
(self::TITLE);
56
}
57
61
public
function
setTitle
(
$title
=
null
)
62
{
63
return
$this->
setData
(self::TITLE,
$title
);
64
}
65
69
public
function
getArea
()
70
{
71
return
$this->
getData
(self::AREA);
72
}
73
77
public
function
setArea
($area =
null
)
78
{
79
return
$this->
setData
(self::AREA, $area);
80
}
81
85
public
function
getExtensionAttributes
()
86
{
87
return
$this->
_getExtensionAttributes
();
88
}
89
93
public
function
setExtensionAttributes
(
94
\
Magento
\
Quote
\Api\Data\TotalSegmentExtensionInterface
$extensionAttributes
95
) {
96
return
$this->
_setExtensionAttributes
($extensionAttributes);
97
}
98
}
$title
$title
Definition:
default.phtml:14
Magento\Quote\Model\Cart\TotalSegment\getCode
getCode()
Definition:
TotalSegment.php:21
Magento\Framework\Model\AbstractExtensibleModel\_getExtensionAttributes
_getExtensionAttributes()
Definition:
AbstractExtensibleModel.php:340
Magento\Framework\Model\AbstractExtensibleModel
Definition:
AbstractExtensibleModel.php:19
Magento\Quote\Model\Cart\TotalSegment
Definition:
TotalSegment.php:16
Magento\Quote\Model\Cart\TotalSegment\getArea
getArea()
Definition:
TotalSegment.php:69
Magento\Quote\Model\Cart\TotalSegment\getExtensionAttributes
getExtensionAttributes()
Definition:
TotalSegment.php:85
Magento\Framework\Model\AbstractExtensibleModel\_setExtensionAttributes
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
Definition:
AbstractExtensibleModel.php:329
Magento\Quote\Model\Cart\TotalSegment\setExtensionAttributes
setExtensionAttributes(\Magento\Quote\Api\Data\TotalSegmentExtensionInterface $extensionAttributes)
Definition:
TotalSegment.php:93
Magento\Framework\Model\AbstractExtensibleModel\$extensionAttributes
$extensionAttributes
Definition:
AbstractExtensibleModel.php:30
Magento\Quote\Model\Cart\TotalSegment\setValue
setValue($value)
Definition:
TotalSegment.php:45
Magento\Quote\Model\Cart\TotalSegment\getTitle
getTitle()
Definition:
TotalSegment.php:53
$value
$value
Definition:
gender.phtml:16
Magento\Quote\Api\Data\TotalSegmentInterface
Definition:
TotalSegmentInterface.php:13
Magento\Quote\Model\Cart\TotalSegment\setArea
setArea($area=null)
Definition:
TotalSegment.php:77
Magento\Quote\Model\Cart
Definition:
CartTotalManagement.php:6
Magento\Quote\Model\Cart\TotalSegment\getValue
getValue()
Definition:
TotalSegment.php:37
Magento
Magento\Quote\Model\Quote
Definition:
Quote.php:107
Magento\Framework\Model\AbstractExtensibleModel\getData
getData($key='', $index=null)
Definition:
AbstractExtensibleModel.php:247
Magento\Framework\Model\AbstractExtensibleModel\setData
setData($key, $value=null)
Definition:
AbstractExtensibleModel.php:189
Magento\Quote\Model\Cart\TotalSegment\setCode
setCode($code)
Definition:
TotalSegment.php:29
Magento\Quote\Model\Cart\TotalSegment\setTitle
setTitle($title=null)
Definition:
TotalSegment.php:61
$code
$code
Definition:
info.phtml:12