Skip to content

Commit be6fc85

Browse files
committed
wip
1 parent 594afe7 commit be6fc85

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/NamespacedSettings.php

+2-11
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@
1010

1111
abstract class NamespacedSettings
1212
{
13-
abstract public function getNamespace(): string;
14-
15-
/**
16-
* @var Collection<int, Setting>
17-
*/
18-
protected Collection $settings;
19-
2013
public function __construct()
2114
{
2215
$this->load();
2316
}
2417

18+
abstract public static function getNamespace(): string;
19+
2520
public function load(): static
2621
{
2722
return $this->fill(
@@ -35,8 +30,6 @@ public function load(): static
3530
public function fill(Collection $settings): static
3631
{
3732

38-
$this->settings = new Collection;
39-
4033
$namespace = $this->getNamespace();
4134

4235
foreach (get_object_vars($this) as $name => $value) {
@@ -54,8 +47,6 @@ public function fill(Collection $settings): static
5447

5548
$this->{$name} = $setting->value;
5649

57-
$this->settings->push($setting);
58-
5950
}
6051

6152
return $this;

0 commit comments

Comments
 (0)