original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get customer by ID.
  
  @param $customerId
  
  @throws \Exception|mixed
  
  @return $this
docstring_tokens: Get customer by ID .