Skip to content

Commit 89fbb72

Browse files
committed
style(presets): rename models array to typesensePresets
1 parent ceb0c0e commit 89fbb72

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Presets.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Presets implements \ArrayAccess
2626
/**
2727
* @var array
2828
*/
29-
private array $presets = [];
29+
private array $typesensePresets = [];
3030

3131
/**
3232
* Presets constructor.
@@ -107,46 +107,46 @@ public function __get($presetName)
107107
if (isset($this->{$presetName})) {
108108
return $this->{$presetName};
109109
}
110-
if (!isset($this->presets[$presetName])) {
111-
$this->presets[$presetName] = new Preset($presetName, $this->apiCall);
110+
if (!isset($this->typesensePresets[$presetName])) {
111+
$this->typesensePresets[$presetName] = new Preset($presetName, $this->apiCall);
112112
}
113113

114-
return $this->presets[$presetName];
114+
return $this->typesensePresets[$presetName];
115115
}
116116

117117
/**
118118
* @inheritDoc
119119
*/
120120
public function offsetExists($offset): bool
121121
{
122-
return isset($this->presets[$offset]);
122+
return isset($this->typesensePresets[$offset]);
123123
}
124124

125125
/**
126126
* @inheritDoc
127127
*/
128128
public function offsetGet($offset): Preset
129129
{
130-
if (!isset($this->presets[$offset])) {
131-
$this->presets[$offset] = new Preset($offset, $this->apiCall);
130+
if (!isset($this->typesensePresets[$offset])) {
131+
$this->typesensePresets[$offset] = new Preset($offset, $this->apiCall);
132132
}
133133

134-
return $this->presets[$offset];
134+
return $this->typesensePresets[$offset];
135135
}
136136

137137
/**
138138
* @inheritDoc
139139
*/
140140
public function offsetSet($offset, $value): void
141141
{
142-
$this->presets[$offset] = $value;
142+
$this->typesensePresets[$offset] = $value;
143143
}
144144

145145
/**
146146
* @inheritDoc
147147
*/
148148
public function offsetUnset($offset): void
149149
{
150-
unset($this->presets[$offset]);
150+
unset($this->typesensePresets[$offset]);
151151
}
152152
}

0 commit comments

Comments
 (0)