| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class PaymentProfile extends CustomerPaymentProfileBase |
||
| 6 | { |
||
| 7 | |||
| 8 | protected $propertyMap = [ |
||
| 9 | 'customerType', |
||
| 10 | 'billTo', |
||
| 11 | 'payment', |
||
| 12 | 'defaultPaymentProfile', |
||
| 13 | 'customerPaymentProfileId' |
||
| 14 | ]; |
||
| 15 | |||
| 16 | 3 | public function addPayment(PaymentMethodInterface $paymentMethod) |
|
| 17 | { |
||
| 18 | 3 | $this->properties['payment'][$paymentMethod->getType()] = $paymentMethod->toArray(); |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | public function addCustomerPaymentProfileId($id) |
||
| 24 | } |
||
| 25 | } |
||
| 26 |