original_string: public function addCustomer(AddCustomerToCustomerGroupEvent $event)
      {
          (new CustomerCustomerGroupQuery())
              ->filterByCustomerId($event->getCustomerId())
              ->filterByCustomerGroupId($event->getCustomerGroupId())
              ->findOneOrCreate()
              ->save();
      }
code: public function addCustomer(AddCustomerToCustomerGroupEvent $event)
      {
          (new CustomerCustomerGroupQuery())
              ->filterByCustomerId($event->getCustomerId())
              ->filterByCustomerGroupId($event->getCustomerGroupId())
              ->findOneOrCreate()
              ->save();
      }
code_tokens: public function addCustomer ( AddCustomerToCustomerGroupEvent $ event ) { ( new CustomerCustomerGroupQuery ( ) ) -> filterByCustomerId ( $ event -> getCustomerId ( ) ) -> filterByCustomerGroupId ( $ event -> getCustomerGroupId ( ) ) -> findOneOrCreate ( ) -> save ( ) ; }
docstring: Add a customer to a customer group.
  @param AddCustomerToCustomerGroupEvent $event
docstring_tokens: Add a customer to a customer group .