| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Payments |
||
| 6 | { |
||
| 7 | const ENDPOINT = 'pay'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var Client |
||
| 11 | */ |
||
| 12 | private $client; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Payments constructor. |
||
| 16 | * @param Client $client |
||
| 17 | */ |
||
| 18 | public function __construct(Client $client) |
||
| 19 | { |
||
| 20 | $this->client = $client; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @see https://revolutdev.github.io/business-api/#create-payment |
||
| 25 | * @see https://revolutdev.github.io/business-api/#schedule-payment |
||
| 26 | * |
||
| 27 | * @param array $json |
||
| 28 | * @return mixed |
||
| 29 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 30 | */ |
||
| 31 | public function create(array $json) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |