Ojs\CoreBundle\Command\DeleteJournalCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | null | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->io->title($this->getDescription());
        $this->io->text("removing articles\n");
        $this->removeArticles();
        $this->io->newLine(2);
        $this->io->text("refresh journal and remove issues\n");
        $this->removeIssues($input);
        $this->io->newLine(1);
        $this->io->text("refresh journal and remove journal totally");
        $this->refreshJournal($input);
        $this->em->remove($this->journal);
        $this->em->flush();
        $this->io->success('successfully removed journal');
    }