public function getCustomers($page = '')
    {
        $customerObjects = [];
        $customers = $this->getCustomerResource()->getAll($page);

        if ($customers instanceof \Exception) {
            throw $customers;
        }

        foreach ($customers as $customer) {
            $customerObject = new Customer($this->getCustomerResource());
            $customerObjects[] = $customerObject->_setAttributes($customer);
        }

        return $customerObjects;
    }
public function getCustomers($page = '')
    {
        $customerObjects = [];
        $customers = $this->getCustomerResource()->getAll($page);

        if ($customers instanceof \Exception) {
            throw $customers;
        }

        foreach ($customers as $customer) {
            $customerObject = new Customer($this->getCustomerResource());
            $customerObjects[] = $customerObject->_setAttributes($customer);
        }

        return $customerObjects;
    }
public function getCustomers ( $ page = '' ) { $ customerObjects = [ ] ; $ customers = $ this -> getCustomerResource ( ) -> getAll ( $ page ) ; if ( $ customers instanceof \ Exception ) { throw $ customers ; } foreach ( $ customers as $ customer ) { $ customerObject = new Customer ( $ this -> getCustomerResource ( ) ) ; $ customerObjects [ ] = $ customerObject -> _setAttributes ( $ customer ) ; } return $ customerObjects ; }
Get all customers.

@param string $page

@throws \Exception|mixed

@return \Exception|mixed
Get all customers .