original_string: public function getComponentTypes()
      {
          $types = array(
              'cart' => $this->translation->text('Cart'),
              'payment' => $this->translation->text('Payment'),
              'shipping' => $this->translation->text('Shipping')
          );
  
          $this->hook->attach('order.component.types', $types);
          return $types;
      }
code: public function getComponentTypes()
      {
          $types = array(
              'cart' => $this->translation->text('Cart'),
              'payment' => $this->translation->text('Payment'),
              'shipping' => $this->translation->text('Shipping')
          );
  
          $this->hook->attach('order.component.types', $types);
          return $types;
      }
code_tokens: public function getComponentTypes ( ) { $ types = array ( 'cart' => $ this -> translation -> text ( 'Cart' ) , 'payment' => $ this -> translation -> text ( 'Payment' ) , 'shipping' => $ this -> translation -> text ( 'Shipping' ) ) ; $ this -> hook -> attach ( 'order.component.types' , $ types ) ; return $ types ; }
docstring: Returns an array of order component types
  @return array
docstring_tokens: Returns an array of order component types