original_string: public function getAddToOrder(Models\Product $product)
      {
          return $this->getTrackPayload(ActionTypes::ADDED_TO_ORDER, [
              PayloadProperties::PROPERTIES =>
                  [
                      [
                          PayloadProperties::PRODUCT => $product->toArray()
                      ]
                  ]
          ]);
      }
code: public function getAddToOrder(Models\Product $product)
      {
          return $this->getTrackPayload(ActionTypes::ADDED_TO_ORDER, [
              PayloadProperties::PROPERTIES =>
                  [
                      [
                          PayloadProperties::PRODUCT => $product->toArray()
                      ]
                  ]
          ]);
      }
code_tokens: public function getAddToOrder ( Models \ Product $ product ) { return $ this -> getTrackPayload ( ActionTypes :: ADDED_TO_ORDER , [ PayloadProperties :: PROPERTIES => [ [ PayloadProperties :: PRODUCT => $ product -> toArray ( ) ] ] ] ) ; }
docstring: Generates payload for add to order events
  
  @param Models\Product $product
  @return array
docstring_tokens: Generates payload for add to order events