init
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Magezon
|
||||
*
|
||||
* This source file is subject to the Magezon Software License, which is available at https://www.magezon.com/license/.
|
||||
* Do not edit or add to this file if you wish to upgrade the to newer versions in the future.
|
||||
* If you wish to customize this module for your needs.
|
||||
* Please refer to https://www.magezon.com for more information.
|
||||
*
|
||||
* @category Magezon
|
||||
* @package Magezon_QuickOrder
|
||||
* @copyright Copyright (C) 2018 Magezon (https://www.magezon.com)
|
||||
*/
|
||||
|
||||
namespace Magezon\QuickOrder\Model\Config\Source;
|
||||
|
||||
class CustomerGroups implements \Magento\Framework\Option\ArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Customer\Model\ResourceModel\Group\Collection
|
||||
*/
|
||||
protected $customerGroupCollection;
|
||||
|
||||
/**
|
||||
* @param \Magento\Customer\Model\ResourceModel\Group\Collection $customerGroupCollection
|
||||
*/
|
||||
public function __construct(
|
||||
\Magento\Customer\Model\ResourceModel\Group\Collection $customerGroupCollection
|
||||
) {
|
||||
$this->customerGroupCollection = $customerGroupCollection;
|
||||
}
|
||||
|
||||
public function toOptionArray()
|
||||
{
|
||||
return $this->customerGroupCollection->toOptionArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user