Completed
Push — master ( 9e1d7e...773033 )
by
unknown
03:28
created

SegmentBilling::setIsPublic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Audiens\AppnexusClient\entity;
4
5
/**
6
 * Class SegmentBilling
7
 */
8
class SegmentBilling
9
{
10
    use HydratableTrait;
11
12
    /** @var  int */
13
    protected $id;
14
15
    /** @var  bool */
16
    protected $active = true;
17
18
    /** @var  int */
19
    protected $member_id;
20
21
    /** @var  int */
22
    protected $segment_id;
23
24
    /** @var  int */
25
    protected $data_provider_id;
26
27
    /** @var  int */
28
    protected $data_category_id;
29
30
    /** @var  bool */
31
    protected $is_public;
32
33
    /**
34
     * SegmentBilling constructor.
35
     */
36
    public function __construct()
37
    {
38
        $this->is_public = false;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getId()
45
    {
46
        return $this->id;
47
    }
48
49
    /**
50
     * @param int $id
51
     */
52
    public function setId($id)
53
    {
54
        $this->id = $id;
55
    }
56
57
    /**
58
     * @return boolean
59
     */
60
    public function isActive()
61
    {
62
        return $this->active;
63
    }
64
65
    /**
66
     * @param boolean $active
67
     */
68
    public function setActive($active)
69
    {
70
        $this->active = $active;
71
    }
72
73
    /**
74
     * @return int
75
     */
76
    public function getMemberId()
77
    {
78
        return $this->member_id;
79
    }
80
81
    /**
82
     * @param int $member_id
83
     */
84
    public function setMemberId($member_id)
85
    {
86
        $this->member_id = $member_id;
87
    }
88
89
    /**
90
     * @return int
91
     */
92
    public function getSegmentId()
93
    {
94
        return $this->segment_id;
95
    }
96
97
    /**
98
     * @param int $segment_id
99
     */
100
    public function setSegmentId($segment_id)
101
    {
102
        $this->segment_id = $segment_id;
103
    }
104
105
    /**
106
     * @return int
107
     */
108
    public function getDataProviderId()
109
    {
110
        return $this->data_provider_id;
111
    }
112
113
    /**
114
     * @param int $data_provider_id
115
     */
116
    public function setDataProviderId($data_provider_id)
117
    {
118
        $this->data_provider_id = $data_provider_id;
119
    }
120
121
    /**
122
     * @return int
123
     */
124
    public function getDataCategoryId()
125
    {
126
        return $this->data_category_id;
127
    }
128
129
    /**
130
     * @param int $data_category_id
131
     */
132
    public function setDataCategoryId($data_category_id)
133
    {
134
        $this->data_category_id = $data_category_id;
135
    }
136
137
    /**
138
     * @return bool
139
     */
140
    public function getIsPublic()
141
    {
142
        return $this->is_public;
143
    }
144
145
    /**
146
     * @param bool $is_public
147
     */
148
    public function setIsPublic($is_public)
149
    {
150
        $this->is_public = $is_public;
151
    }
152
}
153