| 1 | <?php |
||
| 16 | abstract class RepositoryAbstract implements RepositoryInterface |
||
| 17 | { |
||
| 18 | protected $client; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * let us keep reference to our client. |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function getClient() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Let us set our client reference taken from transaction. |
||
| 32 | * |
||
| 33 | * @param $client |
||
| 34 | * |
||
| 35 | * @return RepositoryAbstract |
||
| 36 | */ |
||
| 37 | public function setClient(Client $client) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param $data |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function createRequestQuery($data) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param $address |
||
| 62 | * @param null|array|object $parameters |
||
| 63 | * |
||
| 64 | * @return Promise |
||
| 65 | */ |
||
| 66 | public function createPromise($address, $parameters = null) |
||
| 73 | } |
||
| 74 |