Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Test Class Reference

Public Member Functions

 __construct (\Magento\SomeModule\Module\Factory $factory, \Magento\SomeModule\Element\Factory $elementFactory, \Magento\SomeModule\ElementFactory $rightElementFactory)
 
 testHelper (\Magento\SomeModule\ElementFactory $factory, array $data=[])
 

Protected Attributes

 $_factory
 
 $_elementFactory
 
 $_newElementFactory
 

Detailed Description

@SuppressWarnings(PHPMD.ConstructorWithNameAsEnclosingClass)

Definition at line 11 of file Test.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\SomeModule\Module\Factory  $factory,
\Magento\SomeModule\Element\Factory  $elementFactory,
\Magento\SomeModule\ElementFactory  $rightElementFactory 
)

Test constructor.

Parameters
\Magento\SomeModule\Module\Factory$factory
\Magento\SomeModule\Element\Factory$elementFactory
\Magento\SomeModule\ElementFactory$rightElementFactory

Definition at line 34 of file Test.php.

38  {
39  $this->_factory = $factory;
40  $this->_elementFactory = $elementFactory;
41  $this->_newElementFactory = $rightElementFactory;
42  }

Member Function Documentation

◆ testHelper()

testHelper ( \Magento\SomeModule\ElementFactory  $factory,
array  $data = [] 
)
Parameters
\Magento\SomeModule\ElementFactory$factory
array$data

Definition at line 48 of file Test.php.

49  {
50  $factory->create(\Magento\SomeModule\ElementFactory::class, ['data' => $data]);
51  }

Field Documentation

◆ $_elementFactory

$_elementFactory
protected

Definition at line 21 of file Test.php.

◆ $_factory

$_factory
protected

Definition at line 16 of file Test.php.

◆ $_newElementFactory

$_newElementFactory
protected

Definition at line 26 of file Test.php.


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