Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Item.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Reports\Model;
7 
13 {
17  protected $_isEmpty = false;
18 
22  protected $_children = [];
23 
31  public function setIsEmpty($flag = true)
32  {
33  $this->_isEmpty = $flag;
34  return $this;
35  }
36 
44  public function getIsEmpty()
45  {
46  return $this->_isEmpty;
47  }
48 
52  public function hasIsEmpty()
53  {
54  }
55 
62  public function getChildren()
63  {
64  return $this->_children;
65  }
66 
74  public function setChildren($children)
75  {
76  $this->_children = $children;
77  return $this;
78  }
79 
85  public function hasChildren()
86  {
87  return count($this->_children) > 0 ? true : false;
88  }
89 
96  public function addChild($child)
97  {
98  $this->_children[] = $child;
99  return $this;
100  }
101 }
setChildren($children)
Definition: Item.php:74
$children
Definition: actions.phtml:11
setIsEmpty($flag=true)
Definition: Item.php:31