-
Notifications
You must be signed in to change notification settings - Fork 28
Added $_customerCollection property to Storage class #144
Changes from 2 commits
5181674
b272c4e
e973095
2d45eb3
bb946c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,23 +44,13 @@ class Storage | |
| protected $_byPagesIterator; | ||
|
|
||
| /** | ||
| * @var CustomerCollectionFactory | ||
| */ | ||
| private $customerCollectionFactory; | ||
|
|
||
| /** | ||
| * @param CustomerCollectionFactory $collectionFactory | ||
| * @param CollectionByPagesIteratorFactory $colIteratorFactory | ||
| * @param array $data | ||
| */ | ||
| public function __construct( | ||
| CustomerCollectionFactory $collectionFactory, | ||
| CollectionByPagesIteratorFactory $colIteratorFactory, | ||
| array $data = [] | ||
| ) { | ||
| $this->_customerCollection = isset( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are not allowed to remove public properties, because according to PHP Property Visibility: Methods declared without any explicit visibility keyword are defined as public.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry @maxalmonte14 would you be able to add the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, now the $_customerCollection property is public. |
||
| $data['customer_collection'] | ||
| ) ? $data['customer_collection'] : $collectionFactory->create(); | ||
| $this->_pageSize = isset($data['page_size']) ? $data['page_size'] : 0; | ||
| $this->_byPagesIterator = isset( | ||
| $data['collection_by_pages_iterator'] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we still need this variable passed in as it get's used on
$this->customerCollectionFactory = $collectionFactory;so we should keep that as well asprivate $customerCollectionFactory;but we can keep the removal of: