Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class PurgeCommand extends Command |
||
13 | { |
||
14 | private MessageRepository $messageRepository; |
||
15 | |||
16 | public function __construct(MessageRepository $messageRepository) |
||
20 | } |
||
21 | |||
22 | protected function configure(): void |
||
23 | { |
||
24 | $this |
||
25 | ->setName('pn-message:purge') |
||
26 | ->setDescription('Delete old messages') |
||
27 | ; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param InputInterface $input |
||
32 | * @param OutputInterface $output |
||
33 | * @return int |
||
34 | */ |
||
35 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
39 | } |
||
40 | } |
||
41 |