@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * |
52 | - * @return StaticPlugin |
|
52 | + * @return BuyCoursesPlugin |
|
53 | 53 | */ |
54 | 54 | static function create() |
55 | 55 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Save a transfer account information |
279 | 279 | * @param array $params The transfer account |
280 | - * @return int Rows affected. Otherwise return false |
|
280 | + * @return false|string Rows affected. Otherwise return false |
|
281 | 281 | */ |
282 | 282 | public function saveTransferAccount($params) |
283 | 283 | { |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | /** |
691 | 691 | * Get session info |
692 | 692 | * @param array $sessionId The session ID |
693 | - * @return array |
|
693 | + * @return Session |
|
694 | 694 | */ |
695 | 695 | public function getSessionInfo($sessionId) |
696 | 696 | { |
@@ -783,7 +783,7 @@ discard block |
||
783 | 783 | * Register a sale |
784 | 784 | * @param int $itemId The product ID |
785 | 785 | * @param int $paymentType The payment type |
786 | - * @return boolean |
|
786 | + * @return false|string |
|
787 | 787 | */ |
788 | 788 | public function registerSale($itemId, $paymentType) |
789 | 789 | { |
@@ -965,7 +965,7 @@ discard block |
||
965 | 965 | |
966 | 966 | /** |
967 | 967 | * Get payment types |
968 | - * @return array |
|
968 | + * @return string[] |
|
969 | 969 | */ |
970 | 970 | public function getPaymentTypes() |
971 | 971 | { |
@@ -1004,7 +1004,7 @@ discard block |
||
1004 | 1004 | |
1005 | 1005 | /** |
1006 | 1006 | * Get the statuses for sales |
1007 | - * @return array |
|
1007 | + * @return string[] |
|
1008 | 1008 | */ |
1009 | 1009 | public function getSaleStatuses() |
1010 | 1010 | { |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | |
1018 | 1018 | /** |
1019 | 1019 | * Get the statuses for Payouts |
1020 | - * @return array |
|
1020 | + * @return string[] |
|
1021 | 1021 | */ |
1022 | 1022 | public function getPayoutStatuses() |
1023 | 1023 | { |
@@ -1030,7 +1030,7 @@ discard block |
||
1030 | 1030 | |
1031 | 1031 | /** |
1032 | 1032 | * Get the list of product types |
1033 | - * @return array |
|
1033 | + * @return string[] |
|
1034 | 1034 | */ |
1035 | 1035 | public function getProductTypes() |
1036 | 1036 | { |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | |
1043 | 1043 | /** |
1044 | 1044 | * Get the list of service types |
1045 | - * @return array |
|
1045 | + * @return string[] |
|
1046 | 1046 | */ |
1047 | 1047 | public function getServiceTypes() |
1048 | 1048 | { |
@@ -1424,7 +1424,7 @@ discard block |
||
1424 | 1424 | /** |
1425 | 1425 | * Register a item |
1426 | 1426 | * @param array $itemData The item data |
1427 | - * @return int The item ID. Otherwise return false |
|
1427 | + * @return false|string The item ID. Otherwise return false |
|
1428 | 1428 | */ |
1429 | 1429 | public function registerItem(array $itemData) |
1430 | 1430 | { |
@@ -1582,7 +1582,7 @@ discard block |
||
1582 | 1582 | /** |
1583 | 1583 | * Verify if the beneficiary have a paypal account |
1584 | 1584 | * @param int $userId |
1585 | - * @return true if the user have a paypal account, false if not |
|
1585 | + * @return boolean if the user have a paypal account, false if not |
|
1586 | 1586 | */ |
1587 | 1587 | public function verifyPaypalAccountByBeneficiary($userId) |
1588 | 1588 | { |
@@ -1704,7 +1704,7 @@ discard block |
||
1704 | 1704 | /** |
1705 | 1705 | * Register addicional service |
1706 | 1706 | * @param array params $service |
1707 | - * @return mixed response |
|
1707 | + * @return string|false response |
|
1708 | 1708 | */ |
1709 | 1709 | public function storeService($service) |
1710 | 1710 | { |
@@ -1861,7 +1861,7 @@ discard block |
||
1861 | 1861 | |
1862 | 1862 | /** |
1863 | 1863 | * Get the statuses for sales |
1864 | - * @return array |
|
1864 | + * @return string[] |
|
1865 | 1865 | */ |
1866 | 1866 | public function getServiceSaleStatuses() |
1867 | 1867 | { |
@@ -2118,7 +2118,7 @@ discard block |
||
2118 | 2118 | * @param int $paymentType The payment type |
2119 | 2119 | * @param int $infoSelect The ID for Service Type |
2120 | 2120 | * @param int $trial trial mode |
2121 | - * @return boolean |
|
2121 | + * @return false|string |
|
2122 | 2122 | */ |
2123 | 2123 | public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null) |
2124 | 2124 | { |
@@ -17,6 +17,9 @@ |
||
17 | 17 | const BASE_URL = "https://integ-pago.culqi.com/api/v1"; |
18 | 18 | |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $method |
|
22 | + */ |
|
20 | 23 | public function request($method, $url, $api_key, $data = NULL, $headers= array("Content-Type" => "application/json", "Accept" => "application/json") ) { |
21 | 24 | try { |
22 | 25 | $options = array( |
@@ -3,6 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class Resource extends Client { |
5 | 5 | |
6 | + /** |
|
7 | + * @param Culqi $culqi |
|
8 | + */ |
|
6 | 9 | public function __construct($culqi) |
7 | 10 | { |
8 | 11 | $this->culqi = $culqi; |
@@ -226,6 +226,7 @@ discard block |
||
226 | 226 | */ |
227 | 227 | /** |
228 | 228 | * Send a GET request |
229 | + * @param string $url |
|
229 | 230 | */ |
230 | 231 | public static function get($url, $headers = array(), $options = array()) { |
231 | 232 | return self::request($url, $headers, null, self::GET, $options); |
@@ -240,6 +241,7 @@ discard block |
||
240 | 241 | |
241 | 242 | /** |
242 | 243 | * Send a DELETE request |
244 | + * @param string $url |
|
243 | 245 | */ |
244 | 246 | public static function delete($url, $headers = array(), $options = array()) { |
245 | 247 | return self::request($url, $headers, null, self::DELETE, $options); |
@@ -263,6 +265,7 @@ discard block |
||
263 | 265 | */ |
264 | 266 | /** |
265 | 267 | * Send a POST request |
268 | + * @param string $url |
|
266 | 269 | */ |
267 | 270 | public static function post($url, $headers = array(), $data = array(), $options = array()) { |
268 | 271 | return self::request($url, $headers, $data, self::POST, $options); |
@@ -288,6 +291,7 @@ discard block |
||
288 | 291 | * specification recommends that should send an ETag |
289 | 292 | * |
290 | 293 | * @link https://tools.ietf.org/html/rfc5789 |
294 | + * @param string $url |
|
291 | 295 | */ |
292 | 296 | public static function patch($url, $headers, $data = array(), $options = array()) { |
293 | 297 | return self::request($url, $headers, $data, self::PATCH, $options); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param string $name |
64 | 64 | * @param string $value |
65 | - * @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
65 | + * @param Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
66 | 66 | */ |
67 | 67 | public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) { |
68 | 68 | $this->name = $name; |
@@ -377,6 +377,7 @@ discard block |
||
377 | 377 | * specifies some of this handling, but not in a thorough manner. |
378 | 378 | * |
379 | 379 | * @param string Cookie header value (from a Set-Cookie header) |
380 | + * @param integer $reference_time |
|
380 | 381 | * @return Requests_Cookie Parsed cookie object |
381 | 382 | */ |
382 | 383 | public static function parse($string, $name = '', $reference_time = null) { |
@@ -357,7 +357,7 @@ |
||
357 | 357 | * @param int $delta |
358 | 358 | * @param int $numpoints |
359 | 359 | * @param bool $firsttime |
360 | - * @return int New bias |
|
360 | + * @return double New bias |
|
361 | 361 | */ |
362 | 362 | protected static function adapt($delta, $numpoints, $firsttime) { |
363 | 363 | # function adapt(delta,numpoints,firsttime): |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * |
250 | 250 | * Returns false if $base is not absolute, otherwise an IRI. |
251 | 251 | * |
252 | - * @param IRI|string $base (Absolute) Base IRI |
|
252 | + * @param string $base (Absolute) Base IRI |
|
253 | 253 | * @param IRI|string $relative Relative IRI |
254 | 254 | * @return IRI|false |
255 | 255 | */ |
@@ -984,6 +984,7 @@ discard block |
||
984 | 984 | * Convert an IRI to a URI (or parts thereof) |
985 | 985 | * |
986 | 986 | * @param string|bool IRI to convert (or false from {@see get_iri}) |
987 | + * @param false|string $string |
|
987 | 988 | * @return string|false URI if IRI is valid, false otherwise. |
988 | 989 | */ |
989 | 990 | protected function to_uri($string) { |
@@ -232,7 +232,7 @@ |
||
232 | 232 | * |
233 | 233 | * @param array $request Request data (same form as {@see request_multiple}) |
234 | 234 | * @param boolean $merge_options Should we merge options as well? |
235 | - * @return array Request data |
|
235 | + * @return string Request data |
|
236 | 236 | */ |
237 | 237 | protected function merge_request($request, $merge_options = true) { |
238 | 238 | if ($this->url !== null) { |