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
framework
ObjectManager
Profiler
Tree
Item.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\ObjectManager\Profiler\Tree
;
8
9
class
Item
10
{
14
protected
$class
;
15
19
protected
$parent
=
null
;
20
24
protected
$hash
=
null
;
25
29
protected
$children
= [];
30
35
public
function
__construct
(
$class
,
Item
$parent
=
null
)
36
{
37
$this->
class
=
$class
;
38
$this->parent =
$parent
;
39
40
if
(
$parent
) {
41
$parent
->addChild($this);
42
}
43
}
44
50
public
function
getClass
()
51
{
52
return
$this->class
;
53
}
54
61
public
function
addChild
(
Item
$item
)
62
{
63
$this->children[] =
$item
;
64
}
65
71
public
function
getChildren
()
72
{
73
return
$this->children
;
74
}
75
81
public
function
getParent
()
82
{
83
return
$this->parent
;
84
}
85
92
public
function
setHash
(
$hash
)
93
{
94
$this->hash =
$hash
;
95
}
96
102
public
function
getHash
()
103
{
104
return
$this->hash
;
105
}
106
}
Magento\Framework\ObjectManager\Profiler\Tree\Item\setHash
setHash($hash)
Definition:
Item.php:92
Magento\Framework\ObjectManager\Profiler\Tree\Item\getHash
getHash()
Definition:
Item.php:102
Magento\Framework\ObjectManager\Profiler\Tree\Item\getParent
getParent()
Definition:
Item.php:81
Magento\Framework\ObjectManager\Profiler\Tree\Item
Definition:
Item.php:9
$item
$item
Definition:
partial_invoice.php:27
Magento\Framework\ObjectManager\Profiler\Tree\Item\getChildren
getChildren()
Definition:
Item.php:71
Magento\Framework\ObjectManager\Profiler\Tree\Item\getClass
getClass()
Definition:
Item.php:50
Magento\Framework\ObjectManager\Profiler\Tree\Item\$class
$class
Definition:
Item.php:14
Magento\Framework\ObjectManager\Profiler\Tree\Item\$children
$children
Definition:
Item.php:29
Magento\Framework\ObjectManager\Profiler\Tree\Item\__construct
__construct($class, Item $parent=null)
Definition:
Item.php:35
Magento\Framework\ObjectManager\Profiler\Tree\Item\$hash
$hash
Definition:
Item.php:24
Magento\Framework\ObjectManager\Profiler\Tree\Item\addChild
addChild(Item $item)
Definition:
Item.php:61
Magento\Framework\ObjectManager\Profiler\Tree\Item\$parent
$parent
Definition:
Item.php:19
Magento\Framework\ObjectManager\Profiler\Tree
Definition:
Item.php:7