Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SimpleClassTesting.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  private $nonSharedDependency;
14 
18  private $sharedDependency;
19 
23  private $value;
24 
28  private $valueArray;
29 
33  private $globalValue;
34 
38  private $nullValue;
39 
48  public function __construct(
49  DependencyTesting $nonSharedDependency,
50  DependencySharedTesting $sharedDependency,
51  $value = 'value',
52  array $valueArray = [
53  'default_value1',
54  'default_value2'
55  ],
56  $globalValue = '',
57  $nullValue = null
58  ) {
59 
60  $this->nonSharedDependency = $nonSharedDependency;
61  $this->sharedDependency = $sharedDependency;
62  $this->value = $value;
63  $this->valueArray = $valueArray;
64  $this->globalValue = $globalValue;
65  $this->nullValue = $nullValue;
66  }
67 
71  public function getNullValue()
72  {
73  return $this->nullValue;
74  }
75 
79  public function getGlobalValue()
80  {
81  return $this->globalValue;
82  }
83 
87  public function getNonSharedDependency()
88  {
89  return $this->nonSharedDependency;
90  }
91 
95  public function getSharedDependency()
96  {
97  return $this->sharedDependency;
98  }
99 
103  public function getValue()
104  {
105  return $this->value;
106  }
107 
111  public function getValueArray()
112  {
113  return $this->valueArray;
114  }
115 }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
__construct(DependencyTesting $nonSharedDependency, DependencySharedTesting $sharedDependency, $value='value', array $valueArray=[ 'default_value1', 'default_value2'], $globalValue='', $nullValue=null)