Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Attributes
ClassWithAllArgumentTypes Class Reference
Inheritance diagram for ClassWithAllArgumentTypes:
ClassWithoutOwnConstruct

Public Member Functions

 __construct (\stdClass $stdClassObject, \ClassWithoutConstruct $withoutConstructorClassObject, $someVariable, $const =\ClassWithAllArgumentTypes::DEFAULT_VALUE, $optionalNumValue=9807, $optionalStringValue='optional string', $optionalArrayValue=['optionalKey'=> 'optionalValue'])
 

Data Fields

const DEFAULT_VALUE = 'Const Value'
 

Protected Attributes

 $_stdClassObject
 
 $_withoutConstructorClassObject
 
 $_someVariable
 
 $_optionalNumValue
 
 $_optionalStringValue
 
 $_optionalArrayValue
 
 $_constValue
 

Detailed Description

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Coding Standards have to be ignored in this file, as it is just a data source for tests. @codingStandardsIgnoreStart

Definition at line 11 of file ClassesForArgumentsReader.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \stdClass  $stdClassObject,
\ClassWithoutConstruct  $withoutConstructorClassObject,
  $someVariable,
  $const = \ClassWithAllArgumentTypes::DEFAULT_VALUE,
  $optionalNumValue = 9807,
  $optionalStringValue = 'optional string',
  $optionalArrayValue = ['optionalKey' =,
'optionalValue']   
)
Parameters
stdClass$stdClassObject
ClassWithoutConstruct$withoutConstructorClassObject
mixed$someVariable
string$const
int$optionalNumValue
string$optionalStringValue
array$optionalArrayValue

Definition at line 59 of file ClassesForArgumentsReader.php.

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  }

Field Documentation

◆ $_constValue

$_constValue
protected

Definition at line 48 of file ClassesForArgumentsReader.php.

◆ $_optionalArrayValue

$_optionalArrayValue
protected

Definition at line 43 of file ClassesForArgumentsReader.php.

◆ $_optionalNumValue

$_optionalNumValue
protected

Definition at line 33 of file ClassesForArgumentsReader.php.

◆ $_optionalStringValue

$_optionalStringValue
protected

Definition at line 38 of file ClassesForArgumentsReader.php.

◆ $_someVariable

$_someVariable
protected

Definition at line 28 of file ClassesForArgumentsReader.php.

◆ $_stdClassObject

$_stdClassObject
protected

Definition at line 18 of file ClassesForArgumentsReader.php.

◆ $_withoutConstructorClassObject

$_withoutConstructorClassObject
protected

Definition at line 23 of file ClassesForArgumentsReader.php.

◆ DEFAULT_VALUE

const DEFAULT_VALUE = 'Const Value'

Definition at line 13 of file ClassesForArgumentsReader.php.


The documentation for this class was generated from the following file: