Test Setup Failed
Push — master ( d6fde7...1e848b )
by Php Easy Api
04:20
created

WizardAlterGroup::change()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Migratio\GrammarStructure\Mysql\Wizard;
4
5
use Migratio\Contract\WizardAlterContract;
6
use Migratio\Contract\WizardAlterGroupContract;
7
8
class WizardAlterGroup extends Wizard implements WizardAlterGroupContract
9
{
10
    /**
11
     * @param $field
12
     * @return WizardAlterContract
13
     */
14
    public function addColumn()
15
    {
16
        return $this->getWizardAlterInstance(__FUNCTION__);
17
    }
18
19
    /**
20
     * @param $field
21
     * @return WizardAlterContract
22
     */
23
    public function change()
24
    {
25
        return $this->getWizardAlterInstance(__FUNCTION__);
26
    }
27
28
    /**
29
     * @param $group
30
     * @return WizardAlter
31
     */
32
    private function getWizardAlterInstance($group)
33
    {
34
        $this->setAlterType('group',$group);
35
36
        return new WizardAlter($this);
37
    }
38
}
39
40