File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments