for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* VersionControl_HG
* Simple OO implementation for Mercurial.
*
* PHP Version 5.4
* @copyright 2014 Siad Ardroumli
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://siad007.github.io/versioncontrol_hg
*/
namespace Siad007\VersionControl\HG\Command;
* @author Siad Ardroumli <[email protected]>
* @method boolean getAfter()
* @method void setAfter(boolean $flag)
* @method boolean getForce()
* @method void setForce(boolean $flag)
* @method array getInclude()
* @method void addInclude(string $pattern)
* @method array getExclude()
* @method void addExclude(string $pattern)
class RemoveCommand extends AbstractCommand
{
* Available arguments for this command.
* @var array $arguments
protected $arguments = [
'file' => []
];
* {@inheritdoc}
* @var mixed $options
protected $options = [
'--after' => false,
'--force' => false,
'--include' => [],
'--exclude' => []
* @return array
public function getFile()
return $this->arguments['file'];
}
* @param string $file
* @return void
public function addFile($file)
$this->arguments['file'][] = escapeshellarg($file);
public function __toString()
return sprintf(
"%s%s %s",
$this->name,
$this->assembleOptionString(),
implode(' ', $this->arguments['file'])
);