diff options
author | Andrew Dolgov <[email protected]> | 2022-07-16 16:30:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-16 16:30:46 +0300 |
commit | b8c1d622a77226b14fb307cfe3e0f4cea9e4268a (patch) | |
tree | 3df519798dcfef20c96a079e0956ebcd5509b619 /plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php | |
parent | fdd1c43612011060b4b876db438eb7ec62dd077d (diff) |
add missing files for forked idiorm
Diffstat (limited to 'plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php')
-rw-r--r-- | plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php | 77 |
1 files changed, 76 insertions, 1 deletions
diff --git a/plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php b/plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php index 0632399c6..6d1f03fa7 100644 --- a/plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php +++ b/plugins/af_readability/vendor/fivefilters/readability.php/src/Configuration.php @@ -1,6 +1,6 @@ <?php -namespace andreskrey\Readability; +namespace fivefilters\Readability; use Psr\Log\LoggerAwareTrait; use Psr\Log\LoggerInterface; @@ -69,6 +69,21 @@ class Configuration protected $originalURL = 'http://fakehost'; /** + * @var string + */ + protected $parser = 'html5'; + + /** + * @var bool + */ + protected $keepClasses = false; + + /** + * @var bool + */ + protected $disableJSONLD = false; + + /** * Configuration constructor. * * @param array $params @@ -327,6 +342,66 @@ class Configuration } /** + * @return string + */ + public function getParser() + { + return $this->parser; + } + + /** + * @param string $parser + * + * @return $this + */ + public function setParser($parser) + { + $this->parser = $parser; + + return $this; + } + + /** + * @return bool + */ + public function getKeepClasses() + { + return $this->keepClasses; + } + + /** + * @param bool $keepClasses + * + * @return $this + */ + public function setKeepClasses($keepClasses) + { + $this->keepClasses = $keepClasses; + + return $this; + } + + /** + * @return bool + */ + public function getDisableJSONLD() + { + return $this->disableJSONLD; + } + + /** + * @param bool $disableJSONLD + * + * @return $this + */ + public function setDisableJSONLD($disableJSONLD) + { + $this->disableJSONLD = $disableJSONLD; + + return $this; + } + + /** * @return bool */ public function getSummonCthulhu() |