Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-eav
Test
Unit
Model
Entity
Collection
AbstractCollectionStub.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Eav\Test\Unit\Model\Entity\Collection
;
7
8
class
AbstractCollectionStub
extends
\Magento\Eav\Model\Entity\Collection\AbstractCollection
9
{
16
public
function
getItemById
(
$id
)
17
{
18
if
(isset($this->_itemsById[
$id
])) {
19
return
$this->_itemsById[
$id
];
20
}
21
return
null
;
22
}
23
29
protected
function
_construct
()
30
{
31
return
$this->
_init
(\
Magento
\Framework\DataObject::class,
'test_entity_model'
);
32
}
33
}
Magento\Eav\Model\Entity\Collection\AbstractCollection\_init
_init($model, $entityModel)
Definition:
AbstractCollection.php:227
Magento\Eav\Test\Unit\Model\Entity\Collection\AbstractCollectionStub\getItemById
getItemById($id)
Definition:
AbstractCollectionStub.php:16
$id
$id
Definition:
fieldset.phtml:14
Magento\Eav\Test\Unit\Model\Entity\Collection
Definition:
AbstractCollectionStub.php:6
Magento\Eav\Test\Unit\Model\Entity\Collection\AbstractCollectionStub\_construct
_construct()
Definition:
AbstractCollectionStub.php:29
Magento\Eav\Test\Unit\Model\Entity\Collection\AbstractCollectionStub
Definition:
AbstractCollectionStub.php:8
Magento