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
45
45
private LinkedData $ linkedData ;
46
46
private Metas $ metas ;
47
47
48
+ private array $ settings = [];
48
49
private array $ customDetectors = [];
49
50
50
51
protected AuthorName $ authorName ;
@@ -118,6 +119,21 @@ public function addDetector(string $name, Detector $detector): void
118
119
$ this ->customDetectors [$ name ] = $ detector ;
119
120
}
120
121
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
+
121
137
public function getDocument (): Document
122
138
{
123
139
return $ this ->document ;
You can’t perform that action at this time.
0 commit comments