@@ -68,6 +68,9 @@ |
||
| 68 | 68 | return $this->forKey("index" . $index); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $key |
|
| 73 | + */ |
|
| 71 | 74 | public function forKey($key) |
| 72 | 75 | { |
| 73 | 76 | return isset($this->_nested[$key]) ? $this->_nested[$key] : null; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | 21 | * |
| 22 | - * @param array $aAttribs |
|
| 22 | + * @param array $attributes |
|
| 23 | 23 | */ |
| 24 | 24 | public function __construct($attributes) |
| 25 | 25 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * create a printable representation of the object as: |
| 61 | 61 | * ClassName[property=value, property=value] |
| 62 | - * @return var |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | public function __toString() |
| 65 | 65 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * initializes instance properties from the keys/values of an array |
| 71 | 71 | * @ignore |
| 72 | 72 | * @access protected |
| 73 | - * @param <type> $aAttribs array of properties to set - single level |
|
| 73 | + * @param <type> $attributes array of properties to set - single level |
|
| 74 | 74 | * @return none |
| 75 | 75 | */ |
| 76 | 76 | private function _initializeFromArray($attributes) |
@@ -112,6 +112,9 @@ discard block |
||
| 112 | 112 | ); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $url |
|
| 117 | + */ |
|
| 115 | 118 | public static function _doCreate($url, $params) |
| 116 | 119 | { |
| 117 | 120 | $response = Braintree_Http::post($url, $params); |
@@ -119,6 +122,9 @@ discard block |
||
| 119 | 122 | return self::_verifyGatewayResponse($response); |
| 120 | 123 | } |
| 121 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $url |
|
| 127 | + */ |
|
| 122 | 128 | private static function _doUpdate($url, $params) |
| 123 | 129 | { |
| 124 | 130 | $response = Braintree_Http::put($url, $params); |
@@ -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; |
@@ -38,8 +38,6 @@ |
||
| 38 | 38 | * |
| 39 | 39 | * expects an array of attributes with literal keys |
| 40 | 40 | * |
| 41 | - * @param array $attributes |
|
| 42 | - * @param array $pagerAttribs |
|
| 43 | 41 | */ |
| 44 | 42 | public function __construct($response, $pager) |
| 45 | 43 | { |
@@ -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) |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * create a printable representation of the object as: |
| 105 | 105 | * ClassName[property=value, property=value] |
| 106 | 106 | * @ignore |
| 107 | - * @return var |
|
| 107 | + * @return string |
|
| 108 | 108 | */ |
| 109 | 109 | public function __toString() |
| 110 | 110 | { |
@@ -46,7 +46,6 @@ |
||
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @ignore |
| 49 | - * @param string $classToReturn name of class to instantiate |
|
| 50 | 49 | */ |
| 51 | 50 | public function __construct($objToReturn = null) |
| 52 | 51 | { |
@@ -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; |