@@ -40,12 +40,6 @@ class ConfigurationOption extends ArrayObject implements ConfigurationOptionInte
4040 */
4141 protected $ autoTmpFallback = false ;
4242
43- /**
44- * @var bool
45- * @deprecated Do not use this option anymore
46- */
47- protected $ ignoreSymfonyNotice = false ;
48-
4943 /**
5044 * @var int
5145 */
@@ -71,16 +65,6 @@ class ConfigurationOption extends ArrayObject implements ConfigurationOptionInte
7165 */
7266 protected $ path = '' ;
7367
74- /**
75- * @var string
76- */
77- protected $ fallback = '' ;
78-
79- /**
80- * @var ConfigurationOption
81- */
82- protected $ fallbackConfig ;
83-
8468 /**
8569 * @var int
8670 */
@@ -163,17 +147,6 @@ public function __construct(...$args)
163147 }
164148 }
165149
166- /**
167- * @param string $optionName
168- * @return mixed|null
169- * @deprecated Use ->getOptionName() instead
170- */
171- public function getOption (string $ optionName )
172- {
173- trigger_error (sprintf ('Method "%s" is deprecated, use "getOptionName()" instead ' , __METHOD__ ), E_USER_DEPRECATED );
174- return $ this ->$ optionName ?? null ;
175- }
176-
177150 /**
178151 * @param string $optionName
179152 * @return mixed|null
@@ -219,29 +192,6 @@ public function setAutoTmpFallback(bool $autoTmpFallback): self
219192 return $ this ;
220193 }
221194
222- /**
223- * @return bool
224- * @deprecated As of V7
225- */
226- public function isIgnoreSymfonyNotice (): bool
227- {
228- return $ this ->ignoreSymfonyNotice ;
229- }
230-
231- /**
232- * @param bool $ignoreSymfonyNotice
233- * @return ConfigurationOption
234- * @deprecated As of V7
235- */
236- public function setIgnoreSymfonyNotice (bool $ ignoreSymfonyNotice ): self
237- {
238- if ($ ignoreSymfonyNotice ) {
239- trigger_error ('Configuration option "ignoreSymfonyNotice" is deprecated as of the V7 ' , E_USER_DEPRECATED );
240- }
241- $ this ->ignoreSymfonyNotice = $ ignoreSymfonyNotice ;
242- return $ this ;
243- }
244-
245195 /**
246196 * @return int
247197 */
@@ -340,50 +290,6 @@ public function setPath(string $path): self
340290 return $ this ;
341291 }
342292
343- /**
344- * @return bool|string
345- */
346- public function getFallback ()
347- {
348- return $ this ->fallback ;
349- }
350-
351- /**
352- * @param string $fallback
353- * @return ConfigurationOption
354- */
355- public function setFallback (string $ fallback ): self
356- {
357- $ this ->fallback = $ fallback ;
358- return $ this ;
359- }
360-
361- /**
362- * @return ConfigurationOption|null
363- */
364- public function getFallbackConfig ()
365- {
366- return $ this ->fallbackConfig ;
367- }
368-
369- /**
370- * @param ConfigurationOption|null $fallbackConfig
371- * @return ConfigurationOption
372- * @throws PhpfastcacheInvalidArgumentException
373- */
374- public function setFallbackConfig ($ fallbackConfig ): self
375- {
376- if ($ fallbackConfig !== null && !($ fallbackConfig instanceof self)) {
377- throw new PhpfastcacheInvalidArgumentException (sprintf (
378- 'Invalid argument "%s" for %s ' ,
379- is_object ($ fallbackConfig ) ? get_class ($ fallbackConfig ) : gettype ($ fallbackConfig ),
380- __METHOD__
381- ));
382- }
383- $ this ->fallbackConfig = $ fallbackConfig ;
384- return $ this ;
385- }
386-
387293 /**
388294 * @return int
389295 */
@@ -455,4 +361,4 @@ public function setCacheSlamsTimeout(int $cacheSlamsTimeout): self
455361 $ this ->cacheSlamsTimeout = $ cacheSlamsTimeout ;
456362 return $ this ;
457363 }
458- }
364+ }
0 commit comments