Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
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 | /** |
||
27 | * @param \Swis\JsonApi\Client\Interfaces\DocumentClientInterface $client |
||
28 | * @param \Swis\JsonApi\Client\DocumentFactory $documentFactory |
||
29 | */ |
||
30 | public function __construct(DocumentClientInterface $client, DocumentFactory $documentFactory) |
||
31 | { |
||
32 | $this->client = $client; |
||
33 | $this->documentFactory = $documentFactory; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return \Swis\JsonApi\Client\Interfaces\DocumentClientInterface |
||
38 | */ |
||
39 | public function getClient() |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getEndpoint() |
||
50 | } |
||
51 | } |
||
52 |