| 1 | <?php |
||
| 16 | class FetchCommand implements Command { |
||
| 17 | /** |
||
| 18 | * The remote name. |
||
| 19 | * |
||
| 20 | * @var string|null |
||
| 21 | */ |
||
| 22 | protected $remote; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Include tags? |
||
| 26 | * |
||
| 27 | * @var boolean|null |
||
| 28 | */ |
||
| 29 | protected $tags; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Initialiser. |
||
| 33 | * |
||
| 34 | * @param string|null $remote |
||
| 35 | */ |
||
| 36 | 2 | public function __construct($remote=null) { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc Command |
||
| 42 | */ |
||
| 43 | 2 | public function getCommandLine() { |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Get the remote name. |
||
| 59 | * |
||
| 60 | * @return string|null |
||
| 61 | * |
||
| 62 | * @codeCoverageIgnore |
||
| 63 | */ |
||
| 64 | public function getRemote() { |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Is the fetch with tags? |
||
| 70 | * |
||
| 71 | * @return boolean|null |
||
| 72 | * |
||
| 73 | * @codeCoverageIgnore |
||
| 74 | */ |
||
| 75 | public function getTags() { |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Get the tags argument. |
||
| 81 | * |
||
| 82 | * @return string|null |
||
| 83 | */ |
||
| 84 | 2 | protected function getTagsArgument() { |
|
| 91 | |||
| 92 | /** |
||
| 93 | * Set the remote name. |
||
| 94 | * |
||
| 95 | * @param string $remote |
||
| 96 | * |
||
| 97 | * @codeCoverageIgnore |
||
| 98 | */ |
||
| 99 | public function setRemote($remote) { |
||
| 102 | |||
| 103 | /** |
||
| 104 | * Enable or disable tags. |
||
| 105 | * |
||
| 106 | * @param boolean|null $tags |
||
| 107 | * |
||
| 108 | * @codeCoverageIgnore |
||
| 109 | */ |
||
| 110 | public function setTags($tags) { |
||
| 113 | } |
||
| 114 |