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

Public Member Functions

 __construct (int $id, string $attributeFoo, string $attributeBar)
 
 getId ()
 
 getAttributeFoo ()
 
 getAttributeBar ()
 

Detailed Description

Fake entity object

See also
\Magento\Ui\DataProvider\SearchResultFactoryTest

Definition at line 12 of file EntityFake.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( int  $id,
string  $attributeFoo,
string  $attributeBar 
)
Parameters
int$id
string$attributeFoo
string$attributeBar

Definition at line 34 of file EntityFake.php.

35  {
36  $this->id = $id;
37  $this->attributeFoo = $attributeFoo;
38  $this->attributeBar = $attributeBar;
39  }
$id
Definition: fieldset.phtml:14

Member Function Documentation

◆ getAttributeBar()

getAttributeBar ( )
Returns
string

Definition at line 60 of file EntityFake.php.

60  : string
61  {
62  return $this->attributeBar;
63  }

◆ getAttributeFoo()

getAttributeFoo ( )
Returns
string

Definition at line 52 of file EntityFake.php.

52  : string
53  {
54  return $this->attributeFoo;
55  }

◆ getId()

getId ( )
Returns
int

Definition at line 44 of file EntityFake.php.

44  : int
45  {
46  return $this->id;
47  }
$id
Definition: fieldset.phtml:14

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