PhpBench\Console\Command\ArchiveCommand::execute PHP Method

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $restore = $input->getOption('restore');
        if ($restore) {
            $this->archiver->getService()->restore($output);
            return;
        }
        $this->archiver->getService()->archive($output);
    }