-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTouchpointMapper.php
More file actions
29 lines (25 loc) · 856 Bytes
/
TouchpointMapper.php
File metadata and controls
29 lines (25 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Hypeit\TradeTracker\Mapper;
use Hypeit\TradeTracker\Model\Touchpoint;
class TouchpointMapper implements MapperInterface
{
/**
* {@inheritdoc}
*
* @return Touchpoint
*/
public function hydrate($value)
{
$touchpoint = new Touchpoint();
$touchpoint->setAffiliateSiteId($value->affiliateSiteID);
$touchpoint->setSiteType($value->siteType);
$touchpoint->setRegistrationDate($value->registrationDate);
$touchpoint->setNumImpressions($value->numImpressions);
$touchpoint->setNumClicks($value->numClicks);
$touchpoint->setIsAttributed($value->isAttributed);
$touchpoint->setCommission($value->commission);
$touchpoint->setPosition($value->position);
$touchpoint->setReference($value->reference);
return $touchpoint;
}
}