1 | <?php |
||
15 | class CreateProject extends Base |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $action = 'create-project'; |
||
21 | |||
22 | /** |
||
23 | * @var |
||
24 | */ |
||
25 | protected $source; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $target = ''; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $version = ''; |
||
36 | |||
37 | /** |
||
38 | * @param string $source |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function source($source) |
||
47 | |||
48 | /** |
||
49 | * @param string $target |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function target($target) |
||
58 | |||
59 | /** |
||
60 | * @param string $version |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function version($version) |
||
69 | |||
70 | /** |
||
71 | * @param bool $keep |
||
72 | * |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function keepVcs($keep = true) |
||
82 | |||
83 | /** |
||
84 | * @param bool $noInstall |
||
85 | * |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function noInstall($noInstall = true) |
||
95 | |||
96 | /** |
||
97 | * @param string $repository |
||
98 | * |
||
99 | * @return $this |
||
100 | */ |
||
101 | public function repository($repository) |
||
108 | |||
109 | /** |
||
110 | * @param string $stability |
||
111 | * |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function stability($stability) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function buildCommand() |
||
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | public function run() |
||
147 | } |
||
148 |