| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class CallableChargeClass extends CallableSessionClass |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var ChargeModel|null |
||
| 18 | */ |
||
| 19 | protected ?ChargeModel $charge; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @di |
||
| 23 | * @var ChargeService |
||
| 24 | */ |
||
| 25 | protected ChargeService $chargeService; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @di |
||
| 29 | * @var SettlementService |
||
| 30 | */ |
||
| 31 | protected SettlementService $settlementService; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @di |
||
| 35 | * @var BillService |
||
| 36 | */ |
||
| 37 | protected BillService $billService; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | |||
| 43 | protected function getCharge() |
||
| 44 | { |
||
| 45 | $chargeId = $this->target()->method() === 'home' ? |
||
| 46 | $this->target()->args()[0] : $this->bag('meeting')->get('charge.id'); |
||
| 47 | $this->charge = $this->chargeService->getCharge($chargeId); |
||
|
|
|||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | protected function checkChargeEdit() |
||
| 62 | } |
||
| 63 | } |
||
| 65 |