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

WizardAlter::after()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Migratio\GrammarStructure\Mysql\Wizard;
4
5
use Migratio\Contract\WizardContract;
6
use Migratio\Contract\WizardAlterContract;
7
8
class WizardAlter extends Wizard implements WizardContract,WizardAlterContract
9
{
10
    /**
11
     * @var $after
0 ignored issues
show
Documentation Bug introduced by
The doc comment $after at position 0 could not be parsed: Unknown type name '$after' at position 0 in $after.
Loading history...
12
     */
13
    protected $after;
14
15
    /**
16
     * WizardAlter constructor.
17
     * @param $wizard
18
     */
19
    public function __construct($wizard)
20
    {
21
        $this->wizard=$wizard;
0 ignored issues
show
Bug Best Practice introduced by
The property wizard does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
22
    }
23
24
    /**
25
     * @param $field
26
     * @return $this
27
     */
28
    public function after($field)
29
    {
30
        $this->wizard->setAlterType('place',['AFTER'=>$field]);
31
32
        return $this->wizard;
33
    }
34
}
35
36