File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
src/API2Client/Entities/Order Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ $trackingInfo->setUserAgent ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/53
147
147
$trackingInfo->setUserIPAddress ('10.0.2.2');
148
148
$trackingInfo->setUserLanguage ('en-US,en;q=0.8,uk;q=0.6,ru;q=0.4');
149
149
$trackingInfo->setUserLocalTime ('Tue May 27 2014 10:31:05 GMT+0300 (EEST)');
150
+ $trackingInfo->setTrackers (array(
151
+ "ga" => "GA1.1.1479631296.1738839056"
152
+ ));
150
153
151
154
$order->setTrackingInfo ($trackingInfo);
152
155
Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ class TrackingInfo
97
97
*/
98
98
protected $ tSource ;
99
99
100
+ /** @var array */
101
+ private $ trackers ;
102
+
100
103
/**
101
104
* @param string $affiliateName
102
105
*/
@@ -354,21 +357,37 @@ public function getWebdesignTime ()
354
357
}
355
358
356
359
/**
357
- * @param \API2Client\Entities\Order\ TrackingTSource $tSource
360
+ * @param TrackingTSource $tSource
358
361
*/
359
362
public function setTSource (TrackingTSource $ tSource )
360
363
{
361
364
$ this ->tSource = $ tSource ;
362
365
}
363
366
364
367
/**
365
- * @return \API2Client\Entities\Order\ TrackingTSource
368
+ * @return TrackingTSource
366
369
*/
367
370
public function getTSource ()
368
371
{
369
372
return $ this ->tSource ? $ this ->tSource : new TrackingTSource ();
370
373
}
371
374
375
+ /**
376
+ * @param array $trackers
377
+ */
378
+ public function setTrackers (array $ trackers )
379
+ {
380
+ $ this ->trackers = $ trackers ;
381
+ }
382
+
383
+ /**
384
+ * @return array
385
+ */
386
+ public function getTrackers ()
387
+ {
388
+ return (array )$ this ->trackers ;
389
+ }
390
+
372
391
/**
373
392
* @return array
374
393
*/
@@ -392,6 +411,7 @@ public function toArray ()
392
411
'utmCampaign ' => $ this ->getUtmCampaign (),
393
412
'webdesign ' => $ this ->getWebdesign (),
394
413
'webdesignTime ' => $ this ->getWebdesignTime (),
414
+ 'trackers ' => $ this ->getTrackers (),
395
415
);
396
416
}
397
- }
417
+ }
You can’t perform that action at this time.
0 commit comments