@@ -93,6 +93,9 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $method |
|
| 98 | + */ |
|
| 96 | 99 | protected function _request($method, $url, $params = array(), $options = null) |
| 97 | 100 | { |
| 98 | 101 | $opts = $this->_opts->merge($options); |
@@ -114,6 +117,9 @@ discard block |
||
| 114 | 117 | return array($response, $opts); |
| 115 | 118 | } |
| 116 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string|null $id |
|
| 122 | + */ |
|
| 117 | 123 | protected static function _retrieve($id, $options = null) |
| 118 | 124 | { |
| 119 | 125 | $opts = Util\RequestOptions::parse($options); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @param array|null $params |
| 31 | - * @param array|string|null $opts |
|
| 31 | + * @param string $opts |
|
| 32 | 32 | * |
| 33 | 33 | * @return Customer The created customer. |
| 34 | 34 | */ |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @param array|null $params |
| 78 | 78 | * |
| 79 | - * @return array An array of the customer's Invoices. |
|
| 79 | + * @return Collection An array of the customer's Invoices. |
|
| 80 | 80 | */ |
| 81 | 81 | public function invoices($params = null) |
| 82 | 82 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * @param array|null $params |
| 93 | 93 | * |
| 94 | - * @return array An array of the customer's InvoiceItems. |
|
| 94 | + * @return Collection An array of the customer's InvoiceItems. |
|
| 95 | 95 | */ |
| 96 | 96 | public function invoiceItems($params = null) |
| 97 | 97 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * @param array|null $params |
| 108 | 108 | * |
| 109 | - * @return array An array of the customer's Charges. |
|
| 109 | + * @return Collection An array of the customer's Charges. |
|
| 110 | 110 | */ |
| 111 | 111 | public function charges($params = null) |
| 112 | 112 | { |
@@ -145,7 +145,6 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | - * @param array|null $params |
|
| 149 | 148 | * |
| 150 | 149 | * @return Customer The updated customer. |
| 151 | 150 | */ |
@@ -37,7 +37,6 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @param array|null $params |
|
| 41 | 40 | * @param array|string|null $options |
| 42 | 41 | * |
| 43 | 42 | * @return Dispute The closed dispute. |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | return $this->httpHeaders; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @return string |
|
| 50 | + */ |
|
| 48 | 51 | public function getRequestId() |
| 49 | 52 | { |
| 50 | 53 | return $this->requestId; |
@@ -4,6 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Card extends Base |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param integer $httpStatus |
|
| 9 | + * @param string $httpBody |
|
| 10 | + */ |
|
| 7 | 11 | public function __construct( |
| 8 | 12 | $message, |
| 9 | 13 | $stripeParam, |
@@ -4,6 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | class InvalidRequest extends Base |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param integer $httpStatus |
|
| 9 | + * @param string $httpBody |
|
| 10 | + */ |
|
| 7 | 11 | public function __construct( |
| 8 | 12 | $message, |
| 9 | 13 | $stripeParam, |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * @param number $errno |
|
| 109 | + * @param integer $errno |
|
| 110 | 110 | * @param string $message |
| 111 | 111 | * @throws Error\ApiConnection |
| 112 | 112 | */ |
@@ -54,6 +54,9 @@ |
||
| 54 | 54 | protected $_retrieveOptions; |
| 55 | 55 | protected $_lastResponse; |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param Util\RequestOptions $opts |
|
| 59 | + */ |
|
| 57 | 60 | public function __construct($id = null, $opts = null) |
| 58 | 61 | { |
| 59 | 62 | $this->_opts = $opts ? $opts : new Util\RequestOptions(); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return TransferReversal The created transfer reversal. |
|
| 41 | + * @return Transfer The created transfer reversal. |
|
| 42 | 42 | */ |
| 43 | 43 | public function reverse($params = null, $opts = null) |
| 44 | 44 | { |