code: protected function addItineraries($itineraries, $legacySegments, &$tattooCounter)
      {
          if (!empty($legacySegments)) {
              $this->addSegments($legacySegments, $tattooCounter);
          }
  
          foreach ($itineraries as $itinerary) {
              $this->addSegments(
                  $itinerary->segments,
                  $tattooCounter,
                  $itinerary->origin,
                  $itinerary->destination
              );
          }
      }
docs: Load Segment itinerary
  
  @param Itinerary[] $itineraries
  @param Segment[] $legacySegments
  @param int $tattooCounter (BYREF)
  @throws \ReflectionException