Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ClassesForArgumentsReader.php
Go to the documentation of this file.
1 <?php
12 {
13  const DEFAULT_VALUE = 'Const Value';
14 
18  protected $_stdClassObject;
19 
24 
28  protected $_someVariable;
29 
33  protected $_optionalNumValue;
34 
39 
44 
48  protected $_constValue;
49 
59  public function __construct(
60  \stdClass $stdClassObject,
61  \ClassWithoutConstruct $withoutConstructorClassObject,
62  $someVariable,
64  $optionalNumValue = 9807,
65  $optionalStringValue = 'optional string',
66  $optionalArrayValue = ['optionalKey' => 'optionalValue']
67  ) {
68  $this->_stdClassObject = $stdClassObject;
69  $this->_withoutConstructorClassObject = $withoutConstructorClassObject;
70  $this->_someVariable = $someVariable;
71  $this->_optionalNumValue = $optionalNumValue;
72  $this->_optionalStringValue = $optionalStringValue;
73  $this->_optionalArrayValue = $optionalArrayValue;
74  $this->_constValue = $const;
75  }
76 }
78 {
79 }
81 {
82 }
83 class ClassExtendsDefaultPhpType extends \RuntimeException
84 {
85 }
87 {
96  public function __construct($message = '', $code = 0, Exception $previous = null)
97  {
98  parent::__construct($message, $code, $previous);
99  }
100 }
101 
103 {
107  protected $_stdClassObject;
108 
113 
117  protected $_arrayVariable;
118 
124  public function __construct(
125  \stdClass $stdClassObject,
126  \ClassExtendsDefaultPhpType $runeTimeException,
127  $arrayVariable = ['key' => 'value']
128  ) {
129  $this->_stdClassObject = $stdClassObject;
130  $this->_runeTimeException = $runeTimeException;
131  $this->_arrayVariable = $arrayVariable;
132  }
133 }
135 {
139  protected $_stdClassObject;
140 
144  protected $_secondClass;
145 
150  public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
151  {
152  parent::__construct($stdClassObject, $secondClass);
153  $this->_stdClassObject = $stdClassObject;
154  $this->_secondClass = $secondClass;
155  }
156 }
158 {
162  protected $_stdClassObject;
163 
167  protected $_secondClass;
168 
173  public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
174  {
175  parent::__construct($secondClass, $stdClassObject);
176  $this->_stdClassObject = $stdClassObject;
177  $this->_secondClass = $secondClass;
178  }
179 }
181 {
185  protected $_stdClassObject;
186 
190  protected $_secondClass;
191 
196  public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
197  {
198  parent::__construct($secondClass, $stdClassObject);
199  $this->_stdClassObject = $stdClassObject;
200  $this->_secondClass = $secondClass;
201  }
202 }
204 {
208  protected $argumentOne;
209 
213  protected $argumentTwo;
214 
221  public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
222  {
223  $this->argumentOne = $stdClassObject;
224  $this->argumentTwo = $secondClass;
225  }
226 }
__construct($message='', $code=0, Exception $previous=null)
$message
__construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
__construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
__construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
__construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $runeTimeException, $arrayVariable=['key'=> 'value'])
__construct(\stdClass $stdClassObject, \ClassWithoutConstruct $withoutConstructorClassObject, $someVariable, $const =\ClassWithAllArgumentTypes::DEFAULT_VALUE, $optionalNumValue=9807, $optionalStringValue='optional string', $optionalArrayValue=['optionalKey'=> 'optionalValue'])
__construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpType $secondClass)
$code
Definition: info.phtml:12