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

OptionsProperties::noAction()   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\Foreign;
4
5
use Migratio\Contract\Foreign\OptionsPropertiesContract;
6
7
class OptionsProperties implements OptionsPropertiesContract
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 $constraint
0 ignored issues
show
Documentation Bug introduced by
The doc comment $constraint at position 0 could not be parsed: Unknown type name '$constraint' at position 0 in $constraint.
Loading history...
16
     */
17
    protected $constraint;
18
19
    /**
20
     * OptionsProperties constructor.
21
     * @param $wizard
22
     * @param $constraint
23
     */
24
    public function __construct($wizard,$constraint)
25
    {
26
        $this->wizard=$wizard;
27
        $this->constraint=$constraint;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function cascade()
34
    {
35
        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function noAction()
42
    {
43
        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
44
    }
45
46
    /**
47
     * @return mixed
48
     */
49
    public function restrict()
50
    {
51
        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function setDefault()
58
    {
59
        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
60
    }
61
62
    /**
63
     * @return mixed
64
     */
65
    public function setNull()
66
    {
67
        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
68
    }
69
70
71
}