original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get all customers.
  
  @param string $page
  
  @throws \Exception|mixed
  
  @return \Exception|mixed
docstring_tokens: Get all customers .