@@ 15-86 (lines=72) @@ | ||
12 | * ?> |
|
13 | * ``` |
|
14 | */ |
|
15 | class Remove extends Base |
|
16 | { |
|
17 | /** |
|
18 | * {@inheritdoc} |
|
19 | */ |
|
20 | protected $action = 'remove'; |
|
21 | ||
22 | /** |
|
23 | * @param bool $dev |
|
24 | * |
|
25 | * @return $this |
|
26 | */ |
|
27 | public function dev($dev = true) |
|
28 | { |
|
29 | if ($dev) { |
|
30 | $this->option('--dev'); |
|
31 | } |
|
32 | return $this; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @param bool $noProgress |
|
37 | * |
|
38 | * @return $this |
|
39 | */ |
|
40 | public function noProgress($noProgress = true) |
|
41 | { |
|
42 | if ($noProgress) { |
|
43 | $this->option('--no-progress'); |
|
44 | } |
|
45 | return $this; |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * @param bool $noUpdate |
|
50 | * |
|
51 | * @return $this |
|
52 | */ |
|
53 | public function noUpdate($noUpdate = true) |
|
54 | { |
|
55 | if ($noUpdate) { |
|
56 | $this->option('--no-update'); |
|
57 | } |
|
58 | return $this; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * @param bool $updateNoDev |
|
63 | * |
|
64 | * @return $this |
|
65 | */ |
|
66 | public function updateNoDev($updateNoDev = true) |
|
67 | { |
|
68 | if ($updateNoDev) { |
|
69 | $this->option('--update-no-dev'); |
|
70 | } |
|
71 | return $this; |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * @param bool $updateWithDependencies |
|
76 | * |
|
77 | * @return $this |
|
78 | */ |
|
79 | public function noUpdateWithDependencies($updateWithDependencies = true) |
|
80 | { |
|
81 | if ($updateWithDependencies) { |
|
82 | $this->option('--no-update-with-dependencies'); |
|
83 | } |
|
84 | return $this; |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * {@inheritdoc} |
|
89 | */ |
@@ 15-86 (lines=72) @@ | ||
12 | * ?> |
|
13 | * ``` |
|
14 | */ |
|
15 | class Validate extends Base |
|
16 | { |
|
17 | /** |
|
18 | * {@inheritdoc} |
|
19 | */ |
|
20 | protected $action = 'validate'; |
|
21 | ||
22 | /** |
|
23 | * @param bool $noCheckAll |
|
24 | * |
|
25 | * @return $this |
|
26 | */ |
|
27 | public function noCheckAll($noCheckAll = true) |
|
28 | { |
|
29 | if ($noCheckAll) { |
|
30 | $this->option('--no-check-all'); |
|
31 | } |
|
32 | return $this; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @param bool $noCheckLock |
|
37 | * |
|
38 | * @return $this |
|
39 | */ |
|
40 | public function noCheckLock($noCheckLock = true) |
|
41 | { |
|
42 | if ($noCheckLock) { |
|
43 | $this->option('--no-check-lock'); |
|
44 | } |
|
45 | return $this; |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * @param bool $noCheckPublish |
|
50 | * |
|
51 | * @return $this |
|
52 | */ |
|
53 | public function noCheckPublish($noCheckPublish = true) |
|
54 | { |
|
55 | if ($noCheckPublish) { |
|
56 | $this->option('--no-check-publish'); |
|
57 | } |
|
58 | return $this; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * @param bool $withDependencies |
|
63 | * |
|
64 | * @return $this |
|
65 | */ |
|
66 | public function withDependencies($withDependencies = true) |
|
67 | { |
|
68 | if ($withDependencies) { |
|
69 | $this->option('--with-dependencies'); |
|
70 | } |
|
71 | return $this; |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * @param bool $strict |
|
76 | * |
|
77 | * @return $this |
|
78 | */ |
|
79 | public function strict($strict = true) |
|
80 | { |
|
81 | if ($strict) { |
|
82 | $this->option('--strict'); |
|
83 | } |
|
84 | return $this; |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * {@inheritdoc} |
|
89 | */ |