public function addCategory(\Magento\Framework\DataObject $customer)
    {
        $email = strtolower(trim($customer->getEmail()));
        if (!isset($this->_customerIds[$email])) {
            $this->_customerIds[$email] = [];
        }
        $this->_customerIds[$email][$customer->getWebsiteId()] = $customer->getId();

        return $this;
    }
public function addCategory(\Magento\Framework\DataObject $customer)
    {
        $email = strtolower(trim($customer->getEmail()));
        if (!isset($this->_customerIds[$email])) {
            $this->_customerIds[$email] = [];
        }
        $this->_customerIds[$email][$customer->getWebsiteId()] = $customer->getId();

        return $this;
    }
public function addCategory ( \ Magento \ Framework \ DataObject $ customer ) { $ email = strtolower ( trim ( $ customer -> getEmail ( ) ) ) ; if ( ! isset ( $ this -> _customerIds [ $ email ] ) ) { $ this -> _customerIds [ $ email ] = [ ] ; } $ this -> _customerIds [ $ email ] [ $ customer -> getWebsiteId ( ) ] = $ customer -> getId ( ) ; return $ this ; }
Add customer to array

@param \Magento\Framework\DataObject|\Magento\Customer\Model\Customer $customer
@return $this
Add customer to array