for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Moodle component manager.
*
* @author Luke Carrier <[email protected]>
* @copyright 2016 Luke Carrier
* @license GPL-3.0+
*/
namespace ComponentManager\VersionControl\Git\Command;
* Initialise a new repository.
class CheckoutIndexCommand implements Command {
* Prefix.
* @var string
protected $prefix;
* Initialiser.
* @param string $prefix
public function __construct($prefix) {
$this->prefix = $prefix;
}
* @inheritdoc Command
public function getCommandLine() {
return [
'checkout-index',
'--all',
sprintf('--prefix=%s', $this->prefix),
];
* Get the prefix.
* @return string
* @codeCoverageIgnore
public function getPrefix() {
return $this->prefix;
* Set the prefix.
public function setPrefix($prefix) {