1 | <?php |
||
8 | class SegmentRevenue extends Segment |
||
9 | { |
||
10 | |||
11 | use HydratableTrait; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $clientName; |
||
15 | |||
16 | /** @var int */ |
||
17 | protected $segmentImpression; |
||
18 | |||
19 | /** @var float */ |
||
20 | protected $segmentRevenue; |
||
21 | |||
22 | /** |
||
23 | * SegmentRevenue constructor. |
||
24 | * |
||
25 | * @param $segmentId |
||
26 | * @param $clientName |
||
27 | * @param $segmentName |
||
28 | * @param $segmentStatus |
||
29 | * @param $segmentImpression |
||
30 | * @param $segmentRevenue |
||
31 | */ |
||
32 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function getSegmentRevenue() |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getClientName() |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getSegmentImpression() |
||
70 | |||
71 | /** |
||
72 | * @param array $array |
||
73 | * |
||
74 | * @return SegmentRevenue |
||
75 | * @throws \Exception |
||
76 | */ |
||
77 | public static function fromArray(array $array) |
||
118 | } |
||
119 |