<?php
/**
* Copyright © Qliro AB. All rights reserved.
* See LICENSE.txt for license details.
*/
namespace Qliro\QliroOne\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class PingCommand
* A most trivial command that just respond 'pong'. This can be used to test the cli infrastructure.
*/
class PingCommand extends AbstractCommand
{
const COMMAND_RUN = 'qliroone:ping';
/**
* Configure the CLI command
*/
protected function configure()
{
parent::configure();
$this->setName(self::COMMAND_RUN);
$this->setDescription('Verify QliroOne API');
}
/**
* Initialize the command
*
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function initialize(InputInterface $input, OutputInterface $output)
{
parent::initialize($input, $output);
}
/**
* Execute the command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return int|null
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('<info>pong</info>');
return 0;
}
}