| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | final class Gateway |
||
| 20 | { |
||
| 21 | private DataObjectFactory $dataObjectFactory; |
||
| 22 | |||
| 23 | private OperationPool $operationPool; |
||
| 24 | |||
| 25 | private Client $client; |
||
| 26 | |||
| 27 | private RequestBuilder $requestBuilder; |
||
| 28 | |||
| 29 | public function __construct(ConfigProviderInterface $configProvider, array $registeredEntityTypes = []) |
||
| 30 | { |
||
| 31 | $this->dataObjectFactory = new DataObjectFactory($registeredEntityTypes); |
||
| 32 | $this->client = new Client($configProvider); |
||
| 33 | $this->requestBuilder = new RequestBuilder($this->client); |
||
| 34 | $this->operationPool = new OperationPool($this->requestBuilder, $this->dataObjectFactory); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getDataObjectFactory(): DataObjectFactory |
||
| 38 | { |
||
| 39 | return $this->dataObjectFactory; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getOperationPool(): OperationPool |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getClient(): Client |
||
| 48 | { |
||
| 49 | return $this->client; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getRequestBuilder(): RequestBuilder |
||
| 55 | } |
||
| 56 | } |
||
| 57 |