Total Complexity | 8 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class AttributeOption extends BaseAttributeOption implements ConstraintConfigInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $type; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $constraints; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $typeConfig; |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getType() |
||
32 | { |
||
33 | return $this->type; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $type |
||
38 | */ |
||
39 | public function setType($type) |
||
40 | { |
||
41 | $this->type = $type; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getConstraints() |
||
48 | { |
||
49 | return $this->constraints; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param array $constraints |
||
54 | */ |
||
55 | public function setConstraints($constraints) |
||
56 | { |
||
57 | $this->constraints = $constraints; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getTypeConfig() |
||
64 | { |
||
65 | return $this->typeConfig; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @param array $typeConfig |
||
70 | */ |
||
71 | public function setTypeConfig($typeConfig) |
||
72 | { |
||
73 | $this->typeConfig = $typeConfig; |
||
74 | } |
||
75 | |||
76 | public function isTableAttribute() : bool |
||
79 | } |
||
80 | } |
||
81 |