| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class TransactionManager |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Configuration |
||
| 13 | */ |
||
| 14 | private $configuration; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var TransactionProcessor |
||
| 18 | */ |
||
| 19 | private $processor; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var TransactionHydrator |
||
| 23 | */ |
||
| 24 | private $hydrator; |
||
| 25 | |||
| 26 | public function __construct(Configuration $configuration) |
||
| 27 | { |
||
| 28 | $this->configuration = $configuration; |
||
| 29 | |||
| 30 | $this->processor = new TransactionProcessor($configuration); |
||
| 31 | $this->hydrator = new TransactionHydrator($configuration); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getConfiguration(): Configuration |
||
| 35 | { |
||
| 36 | return $this->configuration; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function populate(Transaction $transaction): void |
||
| 40 | { |
||
| 41 | $this->hydrator->hydrate($transaction); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function process(Transaction $transaction): void |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param EntityManagerInterface $em |
||
| 51 | * |
||
| 52 | * @return EntityManagerInterface |
||
| 53 | */ |
||
| 54 | public function selectStorageSpace(EntityManagerInterface $em): EntityManagerInterface |
||
| 59 |