| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class Api |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | protected $options = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Api constructor. |
||
| 18 | * @param array $options |
||
| 19 | */ |
||
| 20 | 4 | public function __construct(array $options) |
|
| 21 | { |
||
| 22 | 4 | $options = ArrayObject::ensureArrayObject($options); |
|
| 23 | 4 | $options->defaults($this->options); |
|
| 24 | 4 | $this->options = $options; |
|
| 25 | 4 | } |
|
| 26 | |||
| 27 | 2 | public function doPayment(array $fields) |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function doNotify(array $fields) |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 2 | protected function getApiEndpoint() |
|
| 46 | { |
||
| 47 | 2 | return WebToPay::PAY_URL; |
|
| 48 | } |
||
| 49 | |||
| 50 | public function getApiOptions() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |