| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Gvp extends AbstractPos |
||
| 10 | { |
||
| 11 | /** @var GvpBuilderFactory */ |
||
| 12 | private $builderFactory; |
||
| 13 | |||
| 14 | /** @var GvpProcessorFactory */ |
||
| 15 | private $processorFactory; |
||
| 16 | |||
| 17 | public function __construct(AbstractConfiguration $configuration) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | * @see \Paranoia\Pos\AbstractPos::buildRequest() |
||
| 27 | * @throws \Paranoia\Exception\NotImplementedError |
||
| 28 | */ |
||
| 29 | protected function buildRequest(Request $request, $transactionType) |
||
| 30 | { |
||
| 31 | $rawRequest = $this->builderFactory->createBuilder($transactionType)->build($request); |
||
| 32 | return array( 'data' => $rawRequest); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | * @see \Paranoia\Pos\AbstractPos::parseResponse() |
||
| 38 | */ |
||
| 39 | protected function parseResponse($rawResponse, $transactionType) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |