@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | private $_config; |
| 8 | 8 | private $_http; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param Gateway $gateway |
|
| 12 | + */ |
|
| 10 | 13 | public function __construct($gateway) |
| 11 | 14 | { |
| 12 | 15 | $this->_gateway = $gateway; |
@@ -119,6 +122,9 @@ discard block |
||
| 119 | 122 | ]; |
| 120 | 123 | } |
| 121 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $subPath |
|
| 127 | + */ |
|
| 122 | 128 | public function _doCreate($subPath, $params) |
| 123 | 129 | { |
| 124 | 130 | $fullPath = $this->_config->merchantPath() . $subPath; |
@@ -127,6 +133,9 @@ discard block |
||
| 127 | 133 | return $this->_verifyGatewayResponse($response); |
| 128 | 134 | } |
| 129 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $subPath |
|
| 138 | + */ |
|
| 130 | 139 | private function _doUpdate($subPath, $params) |
| 131 | 140 | { |
| 132 | 141 | $fullPath = $this->_config->merchantPath() . $subPath; |
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | class Braintree_RangeNode |
| 4 | 4 | { |
| 5 | + /** |
|
| 6 | + * @param string $name |
|
| 7 | + */ |
|
| 5 | 8 | function __construct($name) |
| 6 | 9 | { |
| 7 | 10 | $this->name = $name; |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | private $_config; |
| 16 | 16 | private $_http; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param Gateway $gateway |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct($gateway) |
| 19 | 22 | { |
| 20 | 23 | $this->_gateway = $gateway; |
@@ -73,6 +76,9 @@ discard block |
||
| 73 | 76 | } |
| 74 | 77 | } |
| 75 | 78 | |
| 79 | + /** |
|
| 80 | + * @param Result\Error $result |
|
| 81 | + */ |
|
| 76 | 82 | public function _mapError($result) |
| 77 | 83 | { |
| 78 | 84 | $error = $result->errors->deepAll()[0]; |
@@ -88,12 +94,18 @@ discard block |
||
| 88 | 94 | return $result; |
| 89 | 95 | } |
| 90 | 96 | |
| 97 | + /** |
|
| 98 | + * @param Result\Successful $result |
|
| 99 | + */ |
|
| 91 | 100 | public function _mapAccessTokenRevokeSuccess($result) |
| 92 | 101 | { |
| 93 | 102 | $result->revocationResult = $result->success; |
| 94 | 103 | return $result; |
| 95 | 104 | } |
| 96 | 105 | |
| 106 | + /** |
|
| 107 | + * @param Result\Successful $result |
|
| 108 | + */ |
|
| 97 | 109 | public function _mapSuccess($result) |
| 98 | 110 | { |
| 99 | 111 | $credentials = $result->credentials; |
@@ -114,6 +126,9 @@ discard block |
||
| 114 | 126 | return $url . '&signature=' . $this->computeSignature($url) . '&algorithm=SHA256'; |
| 115 | 127 | } |
| 116 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $url |
|
| 131 | + */ |
|
| 117 | 132 | public function computeSignature($url) |
| 118 | 133 | { |
| 119 | 134 | $key = hash('sha256', $this->_config->getClientSecret(), true); |
@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | private $_config; |
| 29 | 29 | private $_http; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param Gateway $gateway |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($gateway) |
| 32 | 35 | { |
| 33 | 36 | $this->_gateway = $gateway; |
@@ -287,7 +290,6 @@ discard block |
||
| 287 | 290 | * verifies that a valid payment method identifier is being used |
| 288 | 291 | * @ignore |
| 289 | 292 | * @param string $identifier |
| 290 | - * @param Optional $string $identifierType type of identifier supplied, default 'token' |
|
| 291 | 293 | * @throws InvalidArgumentException |
| 292 | 294 | */ |
| 293 | 295 | private function _validateId($identifier = null, $identifierType = 'token') |
@@ -27,6 +27,9 @@ discard block |
||
| 27 | 27 | private $_config; |
| 28 | 28 | private $_http; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Gateway $gateway |
|
| 32 | + */ |
|
| 30 | 33 | public function __construct($gateway) |
| 31 | 34 | { |
| 32 | 35 | $this->_gateway = $gateway; |
@@ -118,6 +121,7 @@ discard block |
||
| 118 | 121 | * @ignore |
| 119 | 122 | * @param string $subPath |
| 120 | 123 | * @param array $params |
| 124 | + * @param string $httpVerb |
|
| 121 | 125 | * @return mixed |
| 122 | 126 | */ |
| 123 | 127 | private function _doUpdate($httpVerb, $subPath, $params) |
@@ -160,7 +164,6 @@ discard block |
||
| 160 | 164 | * verifies that a valid paypal account identifier is being used |
| 161 | 165 | * @ignore |
| 162 | 166 | * @param string $identifier |
| 163 | - * @param Optional $string $identifierType type of identifier supplied, default 'token' |
|
| 164 | 167 | * @throws InvalidArgumentException |
| 165 | 168 | */ |
| 166 | 169 | private function _validateId($identifier = null, $identifierType = 'token') |
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | class Braintree_RangeNode |
| 4 | 4 | { |
| 5 | + /** |
|
| 6 | + * @param string $name |
|
| 7 | + */ |
|
| 5 | 8 | function __construct($name) |
| 6 | 9 | { |
| 7 | 10 | $this->name = $name; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * initializes instance properties from the keys/values of an array |
| 53 | 53 | * @ignore |
| 54 | 54 | * @access protected |
| 55 | - * @param <type> $aAttribs array of properties to set - single level |
|
| 55 | + * @param <type> $attributes array of properties to set - single level |
|
| 56 | 56 | * @return none |
| 57 | 57 | */ |
| 58 | 58 | private function _initializeFromArray($attributes) |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * @ignore |
| 46 | 46 | * @param array|null $objsToReturn |
| 47 | - * @param array|null $propertyNames |
|
| 47 | + * @param string $propertyNames |
|
| 48 | 48 | */ |
| 49 | 49 | public function __construct($objsToReturn = [], $propertyNames = []) |
| 50 | 50 | { |
@@ -3,12 +3,18 @@ |
||
| 3 | 3 | class Braintree_SignatureService |
| 4 | 4 | { |
| 5 | 5 | |
| 6 | + /** |
|
| 7 | + * @param string $digest |
|
| 8 | + */ |
|
| 6 | 9 | public function __construct($key, $digest) |
| 7 | 10 | { |
| 8 | 11 | $this->key = $key; |
| 9 | 12 | $this->digest = $digest; |
| 10 | 13 | } |
| 11 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $payload |
|
| 17 | + */ |
|
| 12 | 18 | public function sign($payload) |
| 13 | 19 | { |
| 14 | 20 | return $this->hash($payload) . "|" . $payload; |