| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class BaseRepository |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Swis\JsonApi\Client\Interfaces\DocumentClientInterface |
||
| 13 | */ |
||
| 14 | protected $client; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \Swis\JsonApi\Client\DocumentFactory |
||
| 18 | */ |
||
| 19 | protected $documentFactory; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $endpoint = ''; |
||
| 25 | |||
| 26 | 32 | public function __construct(DocumentClientInterface $client, DocumentFactory $documentFactory) |
|
| 27 | { |
||
| 28 | 32 | $this->client = $client; |
|
| 29 | 32 | $this->documentFactory = $documentFactory; |
|
| 30 | 16 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return \Swis\JsonApi\Client\Interfaces\DocumentClientInterface |
||
| 34 | */ |
||
| 35 | 28 | public function getClient() |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 28 | public function getEndpoint() |
|
| 46 | } |
||
| 47 | } |
||
| 48 |