2
2
namespace Dfe \Moip \Facade ;
3
3
use \Df \Payment \BankCardNetworks as N ;
4
4
// 2017-06-11 https://dev.moip.com.br/page/api-reference#section-credit-card
5
- final class Card implements \Df \StripeClone \Facade \ICard {
5
+ final class Card extends \Df \StripeClone \Facade \Card {
6
6
/**
7
7
* 2017-06-11
8
8
* $p is an array like:
@@ -53,7 +53,7 @@ function __construct($p) {$this->_p = $p;}
53
53
* https://mage2.pro/t/3776
54
54
* https://github.com/mage2pro/moip/blob/0.4.1/Facade/Customer.php#L90
55
55
* @override
56
- * @see \Df\StripeClone\Facade\ICard ::brand()
56
+ * @see \Df\StripeClone\Facade\Card ::brand()
57
57
* @used-by \Df\StripeClone\CardFormatter::ii()
58
58
* @used-by \Dfe\Moip\CardFormatter::label()
59
59
* @return string
@@ -72,7 +72,7 @@ function brand() {return dftr($this->brandId(), [
72
72
* 2017-06-11
73
73
* 2017-10-07 It should be an ISO-2 code or `null`.
74
74
* @override
75
- * @see \Df\StripeClone\Facade\ICard ::country()
75
+ * @see \Df\StripeClone\Facade\Card ::country()
76
76
* @used-by \Df\StripeClone\CardFormatter::country()
77
77
* @return string|null
78
78
*/
@@ -86,7 +86,7 @@ function country() {return in_array($this->_p['brand'], ['ELO', 'HIPER', 'HIPERC
86
86
* 2017-06-11
87
87
* 2017-07-19 Moip does not return the expiration date: https://mage2.pro/t/4048
88
88
* @override
89
- * @see \Df\StripeClone\Facade\ICard ::expMonth()
89
+ * @see \Df\StripeClone\Facade\Card ::expMonth()
90
90
* @used-by \Df\StripeClone\CardFormatter::exp()
91
91
* @used-by \Df\StripeClone\CardFormatter::ii()
92
92
* @return null
@@ -97,7 +97,7 @@ function expMonth() {return null;}
97
97
* 2017-06-11
98
98
* 2017-07-19 Moip does not return the card's expiration date: https://mage2.pro/t/4048
99
99
* @override
100
- * @see \Df\StripeClone\Facade\ICard ::expYear()
100
+ * @see \Df\StripeClone\Facade\Card ::expYear()
101
101
* @used-by \Df\StripeClone\CardFormatter::exp()
102
102
* @used-by \Df\StripeClone\CardFormatter::ii()
103
103
* @return null
@@ -120,7 +120,7 @@ function first6() {return $this->_p['first6'];}
120
120
* 2017-10-07 «Credit card id»
121
121
* Type: string(16).
122
122
* @override
123
- * @see \Df\StripeClone\Facade\ICard ::id()
123
+ * @see \Df\StripeClone\Facade\Card ::id()
124
124
* @used-by \Df\StripeClone\ConfigProvider::cards()
125
125
* @used-by \Df\StripeClone\Facade\Customer::cardIdForJustCreated()
126
126
* @return string
@@ -132,7 +132,7 @@ function id() {return $this->_p['id'];}
132
132
* 2017-10-07 «Last four digits of the card»
133
133
* Type: string.
134
134
* @override
135
- * @see \Df\StripeClone\Facade\ICard ::last4()
135
+ * @see \Df\StripeClone\Facade\Card ::last4()
136
136
* @used-by \Df\StripeClone\CardFormatter::ii()
137
137
* @used-by \Dfe\Moip\CardFormatter::label()
138
138
* @return string
@@ -174,7 +174,7 @@ function numberLength() {/** @var string $b */ $b = $this->brandId(); return
174
174
* `holder`: «Credit card holder». Type: structured.
175
175
* `fullname`: «Fullname». Type: string.
176
176
* @override
177
- * @see \Df\StripeClone\Facade\ICard ::owner()
177
+ * @see \Df\StripeClone\Facade\Card ::owner()
178
178
* @used-by \Df\StripeClone\CardFormatter::ii()
179
179
* @return string
180
180
*/
0 commit comments