| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 27 | { |
||
| 28 | $identity = $this->identityFactory->create(); |
||
| 29 | |||
| 30 | $credit = Credit::fromInteger((int) $input->getArgument('credit')); |
||
| 31 | |||
| 32 | $wallet = $this->walletFactory->create($identity); |
||
| 33 | $wallet->withdraw($credit); |
||
| 34 | |||
| 35 | (new SymfonyStyle($input, $output))->success(sprintf('Balance: %d', $wallet->balance()->toInteger())); |
||
| 36 | } |
||
| 38 |