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