Total Complexity | 6 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class OptionsProperties implements OptionsPropertiesContract |
||
8 | { |
||
9 | /** |
||
10 | * @var $wizard WizardContract |
||
|
|||
11 | */ |
||
12 | protected $wizard; |
||
13 | |||
14 | /** |
||
15 | * @var $constraint |
||
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() |
||
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() |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function setNull() |
||
71 | } |