| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class PaymentMethod { |
||
| 21 | /** |
||
| 22 | * Type. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $type; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Construct a payment method. |
||
| 30 | * |
||
| 31 | * @param string $type Adyen payment method type. |
||
| 32 | */ |
||
| 33 | 1 | public function __construct( $type ) { |
|
| 34 | 1 | $this->type = $type; |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get type. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function get_type() { |
|
| 43 | 1 | return $this->type; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get JSON. |
||
| 48 | * |
||
| 49 | * @return object |
||
| 50 | */ |
||
| 51 | 1 | public function get_json() { |
|
| 53 | } |
||
| 54 | } |
||
| 55 |