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-customer
Model
CustomerManagement.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Model
;
7
8
use
Magento\Customer\Api\CustomerManagementInterface
;
9
use Magento\Customer\Model\ResourceModel\Customer\CollectionFactory;
10
11
class
CustomerManagement
implements
CustomerManagementInterface
12
{
16
protected
$customersFactory
;
17
21
public
function
__construct
(CollectionFactory
$customersFactory
)
22
{
23
$this->customersFactory =
$customersFactory
;
24
}
25
29
public
function
getCount
()
30
{
31
$customers
= $this->customersFactory->create();
33
return
$customers
->getSize();
34
}
35
}
Magento\Customer\Api\CustomerManagementInterface
Definition:
CustomerManagementInterface.php:12
Magento\Customer\Model\CustomerManagement\$customersFactory
$customersFactory
Definition:
CustomerManagement.php:16
Magento\Customer\Model\CustomerManagement\__construct
__construct(CollectionFactory $customersFactory)
Definition:
CustomerManagement.php:21
$customers
$customers
Definition:
customer_with_addresses.php:6
Magento\Customer\Api\CustomerManagementInterface\getCount
getCount()
Magento\Customer\Model\CustomerManagement
Definition:
CustomerManagement.php:11
Magento\Customer\Model
Definition:
AccountManagementTest.php:7