public function getCustomer($customerId)
    {
        //retrieve customer, set customer attributes
        $customerModel = $this->customerResource->get($customerId);
        if ($customerModel instanceof \Exception) {
            throw $customerModel;
        }

        $this->_setAttributes($customerModel);
        $this->setDeletable(true);

        return $this;
    }
public function getCustomer($customerId)
    {
        //retrieve customer, set customer attributes
        $customerModel = $this->customerResource->get($customerId);
        if ($customerModel instanceof \Exception) {
            throw $customerModel;
        }

        $this->_setAttributes($customerModel);
        $this->setDeletable(true);

        return $this;
    }
public function getCustomer ( $ customerId ) { //retrieve customer, set customer attributes $ customerModel = $ this -> customerResource -> get ( $ customerId ) ; if ( $ customerModel instanceof \ Exception ) { throw $ customerModel ; } $ this -> _setAttributes ( $ customerModel ) ; $ this -> setDeletable ( true ) ; return $ this ; }
Get customer by ID.

@param $customerId

@throws \Exception|mixed

@return $this
Get customer by ID .