Skip to content

Commit cdef129

Browse files
committed
added settings
1 parent 13eaa8b commit cdef129

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Extractor.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class Extractor
4545
private LinkedData $linkedData;
4646
private Metas $metas;
4747

48+
private array $settings = [];
4849
private array $customDetectors = [];
4950

5051
protected AuthorName $authorName;
@@ -118,6 +119,21 @@ public function addDetector(string $name, Detector $detector): void
118119
$this->customDetectors[$name] = $detector;
119120
}
120121

122+
public function setSettings(array $settings): void
123+
{
124+
$this->settings = $settings;
125+
}
126+
127+
public function getSettings(): array
128+
{
129+
return $this->settings;
130+
}
131+
132+
public function getSetting(string $key): ?string
133+
{
134+
return $this->settings[$key] ?? null;
135+
}
136+
121137
public function getDocument(): Document
122138
{
123139
return $this->document;

0 commit comments

Comments
 (0)