|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Audiens\AppnexusClient\entity; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class MemberDataSharing |
|
7
|
|
|
*/ |
|
8
|
|
|
class MemberDataSharing |
|
9
|
|
|
{ |
|
10
|
|
|
const SEGMENT_EXPOSURE_ALL = 'all'; |
|
11
|
|
|
const SEGMENT_EXPOSURE_LIST = 'list'; |
|
12
|
|
|
|
|
13
|
|
|
use HydratableTrait; |
|
14
|
|
|
|
|
15
|
|
|
/** @var string */ |
|
16
|
|
|
protected $id; |
|
17
|
|
|
|
|
18
|
|
|
/** @var string */ |
|
19
|
|
|
protected $data_member_id; |
|
20
|
|
|
|
|
21
|
|
|
/** @var string */ |
|
22
|
|
|
protected $buyer_member_id; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
* see SEGMENT_EXPOSURE_* |
|
27
|
|
|
*/ |
|
28
|
|
|
protected $segment_exposure; |
|
29
|
|
|
|
|
30
|
|
|
/** @var MemberDataSharingSegment[] */ |
|
31
|
|
|
protected $segments; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @return string |
|
35
|
|
|
*/ |
|
36
|
|
|
public function getId() |
|
37
|
|
|
{ |
|
38
|
|
|
return $this->id; |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @param string $id |
|
43
|
|
|
*/ |
|
44
|
|
|
public function setId($id) |
|
45
|
|
|
{ |
|
46
|
|
|
$this->id = $id; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @return string |
|
51
|
|
|
*/ |
|
52
|
|
|
public function getDataMemberId() |
|
53
|
|
|
{ |
|
54
|
|
|
return $this->data_member_id; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @param string $data_member_id |
|
59
|
|
|
*/ |
|
60
|
|
|
public function setDataMemberId($data_member_id) |
|
61
|
|
|
{ |
|
62
|
|
|
$this->data_member_id = $data_member_id; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
/** |
|
66
|
|
|
* @return string |
|
67
|
|
|
*/ |
|
68
|
|
|
public function getBuyerMemberId() |
|
69
|
|
|
{ |
|
70
|
|
|
return $this->buyer_member_id; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* @param string $buyer_member_id |
|
75
|
|
|
*/ |
|
76
|
|
|
public function setBuyerMemberId($buyer_member_id) |
|
77
|
|
|
{ |
|
78
|
|
|
$this->buyer_member_id = $buyer_member_id; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* @return string |
|
83
|
|
|
*/ |
|
84
|
|
|
public function getSegmentExposure() |
|
85
|
|
|
{ |
|
86
|
|
|
return $this->segment_exposure; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @param string $segment_exposure |
|
91
|
|
|
*/ |
|
92
|
|
|
public function setSegmentExposure($segment_exposure) |
|
93
|
|
|
{ |
|
94
|
|
|
$this->segment_exposure = $segment_exposure; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* @return MemberDataSharingSegment[] |
|
99
|
|
|
*/ |
|
100
|
|
|
public function getSegments() |
|
101
|
|
|
{ |
|
102
|
|
|
return $this->segments; |
|
103
|
|
|
} |
|
104
|
|
|
|
|
105
|
|
|
/** |
|
106
|
|
|
* |
|
107
|
|
|
*/ |
|
108
|
|
|
public function setSegments($segments) |
|
109
|
|
|
{ |
|
110
|
|
|
$this->segments = $segments; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
/** |
|
114
|
|
|
* @param MemberDataSharingSegment $segment |
|
115
|
|
|
*/ |
|
116
|
|
|
public function addSegments($segment) |
|
117
|
|
|
{ |
|
118
|
|
|
$this->segments[] = $segment; |
|
119
|
|
|
} |
|
120
|
|
|
} |
|
121
|
|
|
|