| 1 | <?php |
||
| 12 | abstract class AbstractService |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Client |
||
| 16 | */ |
||
| 17 | private $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ModelFactory |
||
| 21 | */ |
||
| 22 | private $modelFactory; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * AbstractService constructor. |
||
| 26 | * |
||
| 27 | * @param Client $client |
||
| 28 | * @param ModelFactory $modelFactory |
||
| 29 | */ |
||
| 30 | public function __construct(Client $client, ModelFactory $modelFactory) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Client |
||
| 38 | */ |
||
| 39 | protected function getClient(): Client |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return ModelFactory |
||
| 46 | */ |
||
| 47 | protected function getModelFactory(): ModelFactory |
||
| 51 | } |
||
| 52 |