@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | protected $enumNames = []; |
26 | 26 | |
27 | - public function __construct (AbstractEntity $caller, array $data = []) { |
|
27 | + public function __construct(AbstractEntity $caller, array $data = []) { |
|
28 | 28 | parent::__construct($caller); |
29 | 29 | $this->entity = $caller; |
30 | 30 | foreach ($data as $field) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param string $enumName |
48 | 48 | * @return null|string |
49 | 49 | */ |
50 | - public function getEnumGid (string $fieldGid, string $enumName) { |
|
50 | + public function getEnumGid(string $fieldGid, string $enumName) { |
|
51 | 51 | return array_search($enumName, $this->enumNames[$fieldGid]) ?: null; |
52 | 52 | } |
53 | 53 | |
@@ -56,14 +56,14 @@ discard block |
||
56 | 56 | * @param string $valueGid |
57 | 57 | * @return string |
58 | 58 | */ |
59 | - public function getEnumName (string $fieldGid, string $valueGid) { |
|
59 | + public function getEnumName(string $fieldGid, string $valueGid) { |
|
60 | 60 | return $this->enumNames[$fieldGid][$valueGid]; |
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @return string[][] |
65 | 65 | */ |
66 | - public function getEnumNames (): array { |
|
66 | + public function getEnumNames(): array { |
|
67 | 67 | return $this->enumNames; |
68 | 68 | } |
69 | 69 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $fieldGid |
72 | 72 | * @return null|number|string |
73 | 73 | */ |
74 | - public function getValue (string $fieldGid) { |
|
74 | + public function getValue(string $fieldGid) { |
|
75 | 75 | return $this->data[$fieldGid] ?? null; |
76 | 76 | } |
77 | 77 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param string $fieldGid |
80 | 80 | * @return bool |
81 | 81 | */ |
82 | - public function offsetExists ($fieldGid) { |
|
82 | + public function offsetExists($fieldGid) { |
|
83 | 83 | return array_key_exists($fieldGid, $this->data); |
84 | 84 | } |
85 | 85 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param string $fieldGid |
88 | 88 | * @return null|number|string |
89 | 89 | */ |
90 | - public function offsetGet ($fieldGid) { |
|
90 | + public function offsetGet($fieldGid) { |
|
91 | 91 | return $this->getValue($fieldGid); |
92 | 92 | } |
93 | 93 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $fieldGid |
96 | 96 | * @param null|number|string $value |
97 | 97 | */ |
98 | - public function offsetSet ($fieldGid, $value) { |
|
98 | + public function offsetSet($fieldGid, $value) { |
|
99 | 99 | $this->setValue($fieldGid, $value); |
100 | 100 | } |
101 | 101 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * |
105 | 105 | * @param string $fieldGid |
106 | 106 | */ |
107 | - public function offsetUnset ($fieldGid) { |
|
107 | + public function offsetUnset($fieldGid) { |
|
108 | 108 | $this->setValue($fieldGid, null); |
109 | 109 | } |
110 | 110 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param null|number|string $value |
114 | 114 | * @return $this |
115 | 115 | */ |
116 | - public function setValue (string $fieldGid, $value) { |
|
116 | + public function setValue(string $fieldGid, $value) { |
|
117 | 117 | $this->data[$fieldGid] = $value; |
118 | 118 | $this->diff[$fieldGid] = true; |
119 | 119 | $this->entity->diff['custom_fields'] = true; |