@@ -376,6 +376,8 @@ |
||
376 | 376 | |
377 | 377 | /** |
378 | 378 | * Valida o usuario que está tentando usar a api |
379 | + * @param CakeRequest $req |
|
380 | + * @param string $api |
|
379 | 381 | */ |
380 | 382 | public function validate_use_api($req, $api) |
381 | 383 | { |
@@ -7,6 +7,9 @@ discard block |
||
7 | 7 | |
8 | 8 | private $gateway = ''; |
9 | 9 | |
10 | + /** |
|
11 | + * @param string $gateway |
|
12 | + */ |
|
10 | 13 | public function __construct($gateway) |
11 | 14 | { |
12 | 15 | $this->gateway = new $gateway(); |
@@ -48,7 +51,7 @@ discard block |
||
48 | 51 | |
49 | 52 | /** |
50 | 53 | * @return void |
51 | - * @param Array $produtos |
|
54 | + * @param Array $produto |
|
52 | 55 | **/ |
53 | 56 | public function setProdutos($produto) |
54 | 57 | { |
@@ -83,6 +86,9 @@ discard block |
||
83 | 86 | return $this->gateway->setEnderecoClienteGateway(); |
84 | 87 | } |
85 | 88 | |
89 | + /** |
|
90 | + * @param string $reference |
|
91 | + */ |
|
86 | 92 | public function setReference($reference) |
87 | 93 | { |
88 | 94 | $this->gateway->setReference($reference); |
@@ -93,6 +99,9 @@ discard block |
||
93 | 99 | return $this->gateway->getReference(); |
94 | 100 | } |
95 | 101 | |
102 | + /** |
|
103 | + * @param double $valor_frete |
|
104 | + */ |
|
96 | 105 | public function setValorFrete($valor_frete) |
97 | 106 | { |
98 | 107 | $this->gateway->setValorFrete($valor_frete); |
@@ -2,6 +2,9 @@ |
||
2 | 2 | |
3 | 3 | class VariacaoController extends AppController { |
4 | 4 | |
5 | + /** |
|
6 | + * @param string $usuario_id |
|
7 | + */ |
|
5 | 8 | public function s_adicionar_variacao($variacoes, $produto_id, $usuario_id) { |
6 | 9 | if (empty($variacoes) || empty($produto_id)) { |
7 | 10 | return false; |
@@ -119,6 +119,9 @@ |
||
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param boolean|string $url |
|
124 | + */ |
|
122 | 125 | public static function printPaymentUrl($url) |
123 | 126 | { |
124 | 127 | if ($url) { |
@@ -121,6 +121,9 @@ |
||
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param boolean|string $code |
|
126 | + */ |
|
124 | 127 | public static function printPaymentUrl($code) |
125 | 128 | { |
126 | 129 | if ($code) { |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $notificationCode |
|
66 | + */ |
|
64 | 67 | private static function transactionNotification($notificationCode) |
65 | 68 | { |
66 | 69 | |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | } |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $notificationCode |
|
82 | + */ |
|
77 | 83 | private static function authorizationNotification($notificationCode) |
78 | 84 | { |
79 | 85 |
@@ -64,6 +64,10 @@ |
||
64 | 64 | |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $initialDate |
|
69 | + * @param string $finalDate |
|
70 | + */ |
|
67 | 71 | public static function printResult(PagSeguroTransactionSearchResult $result, $initialDate, $finalDate) |
68 | 72 | { |
69 | 73 | $finalDate = $finalDate ? $finalDate : 'now'; |
@@ -66,6 +66,10 @@ |
||
66 | 66 | |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $initialDate |
|
71 | + * @param string $finalDate |
|
72 | + */ |
|
69 | 73 | public static function printResult(PagSeguroTransactionSearchResult $result, $initialDate, $finalDate) |
70 | 74 | { |
71 | 75 | $finalDate = $finalDate ? $finalDate : 'now'; |
@@ -258,6 +258,10 @@ discard block |
||
258 | 258 | * Sets the sender hash |
259 | 259 | * @param string $receiverHash |
260 | 260 | */ |
261 | + |
|
262 | + /** |
|
263 | + * @param string $senderHash |
|
264 | + */ |
|
261 | 265 | public function setSenderHash($senderHash) |
262 | 266 | { |
263 | 267 | $this->senderHash = $senderHash; |
@@ -463,6 +467,10 @@ discard block |
||
463 | 467 | * Sets the reference of this payment request |
464 | 468 | * @param reference |
465 | 469 | */ |
470 | + |
|
471 | + /** |
|
472 | + * @param string $reference |
|
473 | + */ |
|
466 | 474 | public function setReference($reference) |
467 | 475 | { |
468 | 476 | $this->reference = $reference; |
@@ -689,6 +697,10 @@ discard block |
||
689 | 697 | * Sets the info for credit card for this payment request |
690 | 698 | * @param array|object $params... |
691 | 699 | */ |
700 | + |
|
701 | + /** |
|
702 | + * @param PagSeguroCreditCardCheckout $params |
|
703 | + */ |
|
692 | 704 | public function setCreditCard($params = null) |
693 | 705 | { |
694 | 706 |