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

IndexProperties::unique()   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\IndexPropertiesContract;
6
7
class IndexProperties implements IndexPropertiesContract
8
{
9
    /**
10
     * @var $wizard WizardContract
0 ignored issues
show
Documentation Bug introduced by
The doc comment $wizard at position 0 could not be parsed: Unknown type name '$wizard' at position 0 in $wizard.
Loading history...
11
     */
12
    protected $wizard;
13
14
    /**
15
     * @var $index_name
0 ignored issues
show
Documentation Bug introduced by
The doc comment $index_name at position 0 could not be parsed: Unknown type name '$index_name' at position 0 in $index_name.
Loading history...
16
     */
17
    protected $index_name;
18
19
    /**
20
     * IndexProperties constructor.
21
     * @param $index_name
22
     * @param $wizard
23
     */
24
    public function __construct($index_name,$wizard)
25
    {
26
        $this->wizard       = $wizard;
27
        $this->index_name   = $index_name;
28
    }
29
30
    /**
31
     * @return mixed|void
32
     */
33
    public function fulltext()
34
    {
35
        $this->wizard->updateIndexesForSpecialist($this->index_name,__FUNCTION__);
36
    }
37
38
    /**
39
     * @return mixed|void
40
     */
41
    public function unique()
42
    {
43
        $this->wizard->updateIndexesForSpecialist($this->index_name,__FUNCTION__);
44
    }
45
46
}
47
48