Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TestHookObject.php
Go to the documentation of this file.
1 <?php
8 
11 
16 {
22  private $type;
23 
29  private $parentName;
30 
36  private $actions = [];
37 
42  private $customData = [];
43 
50  public function __construct($type, $parentName, $actions)
51  {
52  $this->type = $type;
53  $this->parentName = $parentName;
54  $this->actions = $actions;
55  }
56 
62  public function getType()
63  {
64  return $this->type;
65  }
66 
72  public function getParentName()
73  {
74  return $this->parentName;
75  }
76 
82  public function getActions()
83  {
84  $mergeUtil = new ActionMergeUtil($this->parentName, $this->getType());
85  return $mergeUtil->resolveActionSteps($this->actions);
86  }
87 
93  public function getUnresolvedActions()
94  {
95  return $this->actions;
96  }
97 
103  public function getCustomData()
104  {
105  return $this->customData;
106  }
107 }