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;
* Checkout a reference or file.
class CheckoutCommand implements Command {
* Reference.
* @var string
protected $ref;
* Initialiser.
* @param string $ref
public function __construct($ref) {
$this->ref = $ref;
}
* @inheritdoc Command
public function getCommandLine() {
return ['checkout', $this->ref];
* Get the reference.
* @return string
* @codeCoverageIgnore
public function getRef() {
return $this->ref;
* Set the reference.
public function setRef($ref) {