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\Response;
/**
* XFeatureCommand.
* @author Robin van der Vleuten <[email protected]>
class XFeatureCommand extends Command implements CommandInterface
{
const COMPRESS_GZIP = 'COMPRESS GZIP';
* @var string
private $feature;
* Constructor.
* @param string $feature The feature to enable
public function __construct($feature)
$this->feature = $feature;
parent::__construct();
}
* {@inheritdoc}
public function __invoke()
return sprintf('XFEATURE %s', $this->feature);
public function onXFeatureEnabled(Response $response)
$response
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return true;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.