11<?php
22/**
33* PHP RPC Client by JsonRpcClientGenerator
4- * @date 06.04.2021 12:02
4+ * @date 06.04.2021 13:23
55*/
66
77namespace JsonRpcClient ;
88
99 use EazyJsonRpc \BaseJsonRpcClient ;
1010 use EazyJsonRpc \BaseJsonRpcException ;
11- use EazyJsonRpc \ HttpException ;
11+ use GuzzleHttp \ Exception \ GuzzleException ;
1212 use JsonMapper_Exception ;
1313
1414 /**
@@ -27,7 +27,7 @@ class DatePingServiceClient extends BaseJsonRpcClient {
2727 * @param bool $isNotification [optional] set to true if call is notification
2828 * @return string
2929 * @throws BaseJsonRpcException
30- * @throws HttpException
30+ * @throws GuzzleException
3131 * @throws JsonMapper_Exception
3232 */
3333 public function date_GetTime ( string $ timezone = 'UTC ' , string $ format = 'c ' , $ isNotification = false ): string {
@@ -41,7 +41,7 @@ public function date_GetTime( string $timezone = 'UTC', string $format = 'c', $i
4141 * @param bool $isNotification [optional] set to true if call is notification
4242 * @return array
4343 * @throws BaseJsonRpcException
44- * @throws HttpException
44+ * @throws GuzzleException
4545 * @throws JsonMapper_Exception
4646 */
4747 public function date_GetTimeZones ( $ isNotification = false ): array {
@@ -58,7 +58,7 @@ public function date_GetTimeZones( $isNotification = false ): array {
5858 * @param bool $isNotification [optional] set to true if call is notification
5959 * @return string
6060 * @throws BaseJsonRpcException
61- * @throws HttpException
61+ * @throws GuzzleException
6262 * @throws JsonMapper_Exception
6363 */
6464 public function date_GetRelativeTime ( string $ text , string $ timezone = 'UTC ' , string $ format = 'c ' , $ isNotification = false ): string {
@@ -74,7 +74,7 @@ public function date_GetRelativeTime( string $text, string $timezone = 'UTC', st
7474 * @param bool $isNotification [optional] set to true if call is notification
7575 * @return string string
7676 * @throws BaseJsonRpcException
77- * @throws HttpException
77+ * @throws GuzzleException
7878 * @throws JsonMapper_Exception
7979 */
8080 public function date_Implode ( string $ glue , array $ pieces = array ( 0 => '1 ' , 1 => '2 ' , 2 => '3 ' ), $ isNotification = false ): string {
@@ -89,7 +89,7 @@ public function date_Implode( string $glue, array $pieces = array( 0 => '1', 1
8989 * @param bool $isNotification [optional] set to true if call is notification
9090 * @return string pong
9191 * @throws BaseJsonRpcException
92- * @throws HttpException
92+ * @throws GuzzleException
9393 * @throws JsonMapper_Exception
9494 */
9595 public function ping_Ping ( string $ message = 'pong ' , $ isNotification = false ): string {
@@ -103,7 +103,7 @@ public function ping_Ping( string $message = 'pong', $isNotification = false ):
103103 * @param bool $isNotification [optional] set to true if call is notification
104104 * @return array News
105105 * @throws BaseJsonRpcException
106- * @throws HttpException
106+ * @throws GuzzleException
107107 * @throws JsonMapper_Exception
108108 */
109109 public function news_GetList ( $ isNotification = false ): array {
@@ -118,7 +118,7 @@ public function news_GetList( $isNotification = false ): array {
118118 * @param bool $isNotification [optional] set to true if call is notification
119119 * @return array News
120120 * @throws BaseJsonRpcException
121- * @throws HttpException
121+ * @throws GuzzleException
122122 * @throws JsonMapper_Exception
123123 */
124124 public function news_GetById ( int $ id , $ isNotification = false ): array {
@@ -132,7 +132,7 @@ public function news_GetById( int $id, $isNotification = false ): array {
132132 * @param bool $isNotification [optional] set to true if call is notification
133133 * @return array Category Tag
134134 * @throws BaseJsonRpcException
135- * @throws HttpException
135+ * @throws GuzzleException
136136 * @throws JsonMapper_Exception
137137 */
138138 public function news_GetTags ( $ isNotification = false ): array {
@@ -146,7 +146,7 @@ public function news_GetTags( $isNotification = false ): array {
146146 * @param bool $isNotification [optional] set to true if call is notification
147147 * @return array
148148 * @throws BaseJsonRpcException
149- * @throws HttpException
149+ * @throws GuzzleException
150150 * @throws JsonMapper_Exception
151151 */
152152 public function news_Categories ( $ isNotification = false ): array {
@@ -163,7 +163,7 @@ public function news_Categories( $isNotification = false ): array {
163163 * @param bool $isNotification [optional] set to true if call is notification
164164 * @return array News
165165 * @throws BaseJsonRpcException
166- * @throws HttpException
166+ * @throws GuzzleException
167167 * @throws JsonMapper_Exception
168168 */
169169 public function news_Search ( array $ s , int $ page , int $ count = 50 , $ isNotification = false ): array {
@@ -179,7 +179,7 @@ public function news_Search( array $s, int $page, int $count = 50, $isNotificati
179179 * @param bool $isNotification [optional] set to true if call is notification
180180 * @return array
181181 * @throws BaseJsonRpcException
182- * @throws HttpException
182+ * @throws GuzzleException
183183 * @throws JsonMapper_Exception
184184 */
185185 public function news_NameValue ( array $ nv , int $ c = null , $ isNotification = false ): array {
@@ -192,7 +192,7 @@ public function news_NameValue( array $nv, int $c = null, $isNotification = fals
192192 * @param $url string
193193 * @return DatePingServiceClient
194194 */
195- public static function GetInstance ( string $ url = ' http://localhost/tests/example-server.php ' ): DatePingServiceClient {
195+ public static function GetInstance ( string $ url ): DatePingServiceClient {
196196 return new self ( $ url );
197197 }
198198
0 commit comments