| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class UserDeleteCommand extends Command |
||
| 15 | { |
||
| 16 | 3 | public function __construct( |
|
| 17 | private readonly ContainerInterface $dic |
||
| 18 | ) { |
||
| 19 | 3 | parent::__construct( |
|
| 20 | 3 | 'user:del', |
|
| 21 | 3 | 'Deletes a user' |
|
| 22 | 3 | ); |
|
| 23 | |||
| 24 | 3 | $this |
|
| 25 | 3 | ->argument( |
|
| 26 | 3 | '<userId>', |
|
| 27 | 3 | 'User Id' |
|
| 28 | 3 | ) |
|
| 29 | 3 | ->usage( |
|
| 30 | 3 | '<bold> $0 ud 666</end> <comment></end> ## Deletes the user with the id `666`<eol/>' |
|
| 31 | 3 | ); |
|
| 32 | } |
||
| 33 | |||
| 34 | 3 | public function execute(?string $userId): void |
|
| 53 | } |
||
| 54 | } |
||
| 56 |