1 | <?php |
||
39 | class CloneCommand extends AbstractCommand |
||
40 | { |
||
41 | /** |
||
42 | * Available arguments for this command. |
||
43 | * |
||
44 | * @var array $arguments |
||
45 | */ |
||
46 | protected $arguments = [ |
||
47 | 'destination' => '', |
||
48 | 'source' => '' |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | * |
||
54 | * @var array $options |
||
55 | */ |
||
56 | protected $options = [ |
||
57 | '--noupdate' => false, |
||
58 | '--updaterev' => '', |
||
59 | '--rev' => [], |
||
60 | '--branch' => [], |
||
61 | '--pull' => false, |
||
62 | '--uncompressed' => false, |
||
63 | '--ssh' => '', |
||
64 | '--remotecmd' => '', |
||
65 | '--insecure' => false |
||
66 | ]; |
||
67 | |||
68 | /** |
||
69 | * Get the destination. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 1 | public function getDestination() |
|
77 | |||
78 | /** |
||
79 | * Set the destination. |
||
80 | * |
||
81 | * @param string $destination |
||
82 | * |
||
83 | * @return void |
||
84 | */ |
||
85 | 1 | public function setDestination($destination) |
|
89 | |||
90 | /** |
||
91 | * Get the source argument for this command. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function getSource() |
|
99 | |||
100 | /** |
||
101 | * Set the source argument for this command. |
||
102 | * |
||
103 | * @param string $source |
||
104 | * |
||
105 | * @return void |
||
106 | */ |
||
107 | 2 | public function setSource($source) |
|
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | 3 | public function __toString() |
|
142 | } |
||
143 |