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-catalog
Model
ProductType.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Catalog\Model
;
9
10
use
Magento\Catalog\Api\Data\ProductTypeInterface
;
11
15
class
ProductType
extends
\Magento\Framework\Api\AbstractExtensibleObject
implements
ProductTypeInterface
16
{
20
const
KEY_NAME
=
'name'
;
21
const
KEY_LABEL
=
'label'
;
27
public
function
getName
()
28
{
29
return
$this->
_get
(self::KEY_NAME);
30
}
31
35
public
function
getLabel
()
36
{
37
return
$this->
_get
(self::KEY_LABEL);
38
}
39
46
public
function
setName
(
$name
)
47
{
48
return
$this->
setData
(self::KEY_NAME,
$name
);
49
}
50
57
public
function
setLabel
(
$label
)
58
{
59
return
$this->
setData
(self::KEY_LABEL,
$label
);
60
}
61
67
public
function
getExtensionAttributes
()
68
{
69
return
$this->
_getExtensionAttributes
();
70
}
71
78
public
function
setExtensionAttributes
(
79
\
Magento
\Catalog\Api\Data\ProductTypeExtensionInterface
$extensionAttributes
80
) {
81
return
$this->
_setExtensionAttributes
($extensionAttributes);
82
}
83
}
Magento\Catalog\Api\Data\ProductTypeInterface
Definition:
ProductTypeInterface.php:16
Magento\Framework\Api\AbstractExtensibleObject\_setExtensionAttributes
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
Definition:
AbstractExtensibleObject.php:190
Magento\Catalog\Model\ProductType\setName
setName($name)
Definition:
ProductType.php:46
Magento\Catalog\Model\ProductType\KEY_LABEL
const KEY_LABEL
Definition:
ProductType.php:21
$label
$label
Definition:
details.phtml:21
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento
Magento\Catalog\Model\ProductType\getExtensionAttributes
getExtensionAttributes()
Definition:
ProductType.php:67
Magento\Catalog\Model\ProductType\setLabel
setLabel($label)
Definition:
ProductType.php:57
Magento\Catalog\Model\ProductType\setExtensionAttributes
setExtensionAttributes(\Magento\Catalog\Api\Data\ProductTypeExtensionInterface $extensionAttributes)
Definition:
ProductType.php:78
Magento\Catalog\Model
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\Catalog\Model\ProductType\getName
getName()
Definition:
ProductType.php:27
Magento\Catalog\Model\ProductType\KEY_NAME
const KEY_NAME
Definition:
ProductType.php:20
Magento\Catalog\Model\ProductType\getLabel
getLabel()
Definition:
ProductType.php:35
Magento\Framework\Api\AbstractExtensibleObject\_getExtensionAttributes
_getExtensionAttributes()
Definition:
AbstractExtensibleObject.php:164
Magento\Catalog\Model\Product\Type
Definition:
AbstractTypeTest.php:7
Magento\Framework\Api\AbstractExtensibleObject
Definition:
AbstractExtensibleObject.php:17
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14