for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the NNTP library.
*
* (c) Robin van der Vleuten <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rvdv\Nntp\Command;
use Rvdv\Nntp\Response\MultiLineResponse;
/**
* @author Robin van der Vleuten <[email protected]>
class HelpCommand extends Command implements CommandInterface
{
* Constructor.
public function __construct()
parent::__construct(true);
}
* {@inheritdoc}
public function __invoke()
return 'HELP';
* @param MultiLineResponse $response
* @return string
public function onHelpTextFollow(MultiLineResponse $response)
return implode("\n", (array) $response->getLines());