Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class WizardAlterGroup extends Wizard implements WizardAlterGroupContract |
||
10 | { |
||
11 | /** |
||
12 | * add column |
||
13 | * |
||
14 | * @return WizardAlterContract |
||
15 | */ |
||
16 | public function addColumn() |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * drop column |
||
23 | * |
||
24 | * @return NameContract |
||
25 | */ |
||
26 | public function dropColumn() |
||
27 | { |
||
28 | return $this->dropWizardAlterInstance(__FUNCTION__); |
||
|
|||
29 | } |
||
30 | |||
31 | /** |
||
32 | * change column |
||
33 | * |
||
34 | * @return WizardAlterContract |
||
35 | */ |
||
36 | public function change() |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * get wizard alter instance |
||
43 | * |
||
44 | * @param $group |
||
45 | * @return WizardAlter |
||
46 | */ |
||
47 | private function getWizardAlterInstance($group) |
||
48 | { |
||
49 | $this->setAlterType('group',$group); |
||
50 | |||
51 | return new WizardAlter($this); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param $group |
||
56 | * @return $this |
||
57 | */ |
||
58 | private function dropWizardAlterInstance($group) |
||
63 | } |
||
64 | } |
||
65 | |||
66 |