1 | <?php |
||
21 | class Period extends Resource |
||
22 | { |
||
23 | /** |
||
24 | * Number of clicks on this short URL. |
||
25 | * |
||
26 | * @var integer |
||
27 | */ |
||
28 | public $shortUrlClicks; |
||
29 | |||
30 | /** |
||
31 | * Number of clicks on all goo.gl short URLs pointing to this long URL. |
||
32 | * |
||
33 | * @var integer |
||
34 | */ |
||
35 | public $longUrlClicks; |
||
36 | |||
37 | /** |
||
38 | * Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available. |
||
39 | * |
||
40 | * @var Category[] |
||
41 | */ |
||
42 | public $referrers = []; |
||
43 | |||
44 | /** |
||
45 | * Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available. |
||
46 | * |
||
47 | * @var Category[] |
||
48 | */ |
||
49 | public $countries = []; |
||
50 | |||
51 | /** |
||
52 | * Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available. |
||
53 | * |
||
54 | * @var Category[] |
||
55 | */ |
||
56 | public $browsers = []; |
||
57 | |||
58 | /** |
||
59 | * Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available. |
||
60 | * |
||
61 | * @var Category[] |
||
62 | */ |
||
63 | public $platforms = []; |
||
64 | |||
65 | /** |
||
66 | * Populates the referrers list |
||
67 | * |
||
68 | * @param $list |
||
69 | */ |
||
70 | 3 | public function setReferrers($list) |
|
76 | |||
77 | /** |
||
78 | * Populates the countries list |
||
79 | * |
||
80 | * @param $list |
||
81 | */ |
||
82 | 3 | public function setCountries($list) |
|
88 | |||
89 | /** |
||
90 | * Populates the browsers list |
||
91 | * |
||
92 | * @param $list |
||
93 | */ |
||
94 | 3 | public function setBrowsers($list) |
|
100 | |||
101 | /** |
||
102 | * Populates the platforms list |
||
103 | * |
||
104 | * @param $list |
||
105 | */ |
||
106 | 3 | public function setPlatforms($list) |
|
112 | } |
||
113 |