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

Public Member Functions

 __construct ()
 
 testModel (\Magento\SomeModule\ModelFactory $factory, array $data=[])
 

Detailed Description

@SuppressWarnings(PHPMD.ConstructorWithNameAsEnclosingClass)

Definition at line 11 of file Test.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 13 of file Test.php.

14  {
15  new \Magento\SomeModule\Model\Element\Proxy();
16  }

Member Function Documentation

◆ testModel()

testModel ( \Magento\SomeModule\ModelFactory  $factory,
array  $data = [] 
)
Parameters
\Magento\SomeModule\ModelFactory$factory
array$data

Definition at line 22 of file Test.php.

23  {
24  $factory->create(\Magento\SomeModule\Model\BlockFactory::class, ['data' => $data]);
25  }

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