44
55use Backstage \Analytics \Enums \Direction ;
66use Backstage \Analytics \Period ;
7+ use Google \ApiCore \ApiException ;
8+ use Google \ApiCore \ValidationException ;
79
810trait DemographicAnalytics
911{
1012 /**
11- * @throws \Google\ApiCore\ ApiException
12- * @throws \Google\ApiCore\ ValidationException
13+ * @throws ApiException
14+ * @throws ValidationException
1315 */
1416 public function topUsersByLanguage (Period $ period , int $ limit = 10 ): array
1517 {
@@ -25,8 +27,8 @@ public function topUsersByLanguage(Period $period, int $limit = 10): array
2527 }
2628
2729 /**
28- * @throws \Google\ApiCore\ ApiException
29- * @throws \Google\ApiCore\ ValidationException
30+ * @throws ApiException
31+ * @throws ValidationException
3032 */
3133 public function totalUsersByLanguage (Period $ period ): array
3234 {
@@ -40,8 +42,8 @@ public function totalUsersByLanguage(Period $period): array
4042 }
4143
4244 /**
43- * @throws \Google\ApiCore\ ApiException
44- * @throws \Google\ApiCore\ ValidationException
45+ * @throws ApiException
46+ * @throws ValidationException
4547 */
4648 public function topUsersByCountry (Period $ period , int $ limit = 10 ): array
4749 {
@@ -57,8 +59,8 @@ public function topUsersByCountry(Period $period, int $limit = 10): array
5759 }
5860
5961 /**
60- * @throws \Google\ApiCore\ ApiException
61- * @throws \Google\ApiCore\ ValidationException
62+ * @throws ApiException
63+ * @throws ValidationException
6264 */
6365 public function totalUsersByCountry (Period $ period ): array
6466 {
@@ -72,8 +74,8 @@ public function totalUsersByCountry(Period $period): array
7274 }
7375
7476 /**
75- * @throws \Google\ApiCore\ ApiException
76- * @throws \Google\ApiCore\ ValidationException
77+ * @throws ApiException
78+ * @throws ValidationException
7779 */
7880 public function topUsersByCity (Period $ period , int $ limit = 10 ): array
7981 {
@@ -89,8 +91,8 @@ public function topUsersByCity(Period $period, int $limit = 10): array
8991 }
9092
9193 /**
92- * @throws \Google\ApiCore\ ApiException
93- * @throws \Google\ApiCore\ ValidationException
94+ * @throws ApiException
95+ * @throws ValidationException
9496 */
9597 public function totalUsersByCity (Period $ period ): array
9698 {
@@ -104,8 +106,8 @@ public function totalUsersByCity(Period $period): array
104106 }
105107
106108 /**
107- * @throws \Google\ApiCore\ ApiException
108- * @throws \Google\ApiCore\ ValidationException
109+ * @throws ApiException
110+ * @throws ValidationException
109111 */
110112 public function totalUsersByGender (Period $ period ): array
111113 {
@@ -120,8 +122,8 @@ public function totalUsersByGender(Period $period): array
120122 }
121123
122124 /**
123- * @throws \Google\ApiCore\ ApiException
124- * @throws \Google\ApiCore\ ValidationException
125+ * @throws ApiException
126+ * @throws ValidationException
125127 */
126128 public function totalUsersByAge (Period $ period ): array
127129 {
0 commit comments