| Total Complexity | 5 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class AbstractService |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * BASE API URI |
||
| 16 | */ |
||
| 17 | const BASE_URI = 'https://api.pagantis.com'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Private key for API calls |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $privateKey; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $baseUri; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var Request |
||
| 33 | */ |
||
| 34 | protected $request; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * AbstractService constructor. |
||
| 38 | * |
||
| 39 | * @param string $privateKey |
||
| 40 | * @param null $baseUri |
||
|
|
|||
| 41 | */ |
||
| 42 | public function __construct($privateKey, $baseUri = null) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return Request |
||
| 50 | */ |
||
| 51 | protected function getRequest() |
||
| 58 | ; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param $array |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | protected function addGetParameters($array) |
||
| 73 |