| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Transaction implements TransactionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $key; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var AbstractDataProvider |
||
| 19 | */ |
||
| 20 | private $dataProvider; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Transaction constructor. |
||
| 24 | * |
||
| 25 | * @param string $key |
||
| 26 | * @param \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider $dataProvider |
||
| 27 | */ |
||
| 28 | 1 | public function __construct(string $key, AbstractDataProvider $dataProvider) |
|
| 29 | { |
||
| 30 | 1 | $this->key = $key; |
|
| 31 | 1 | $this->dataProvider = $dataProvider; |
|
| 32 | 1 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 1 | public function getKey(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider |
||
| 44 | */ |
||
| 45 | 1 | public function getDataProvider(): AbstractDataProvider |
|
| 48 | } |
||
| 49 | } |
||
| 50 |