summaryrefslogtreecommitdiff
path: root/src/Configuration.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-11-26 17:56:12 +0000
committerAndres Rey <[email protected]>2017-11-26 17:56:12 +0000
commit8c36112c0bbac0ab2e8e897388219917ecfa103c (patch)
tree545ec6cf88a8280ec88d4e1d50b213f4a542e2dd /src/Configuration.php
parent3687f2f5cd4f0390613bb5879cbfce1a94307a33 (diff)
Making room for v1
Diffstat (limited to 'src/Configuration.php')
-rw-r--r--src/Configuration.php60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/Configuration.php b/src/Configuration.php
index d2fa6a7..e69de29 100644
--- a/src/Configuration.php
+++ b/src/Configuration.php
@@ -1,60 +0,0 @@
-<?php
-
-namespace andreskrey\Readability;
-
-class Configuration
-{
- protected $config;
-
- /**
- * @param array $config
- */
- public function __construct(array $config = [])
- {
- $this->config = $config;
- }
-
- /**
- * @param array $config
- */
- public function merge(array $config = [])
- {
- $this->config = array_replace_recursive($this->config, $config);
- }
-
- /**
- * @param array $config
- */
- public function replace(array $config = [])
- {
- $this->config = $config;
- }
-
- /**
- * @param string $key
- * @param mixed $value
- */
- public function setOption($key, $value)
- {
- $this->config[$key] = $value;
- }
-
- /**
- * @param string|null $key
- * @param mixed|null $default
- *
- * @return mixed|null
- */
- public function getOption($key = null, $default = null)
- {
- if ($key === null) {
- return $this->config;
- }
-
- if (!isset($this->config[$key])) {
- return $default;
- }
-
- return $this->config[$key];
- }
-}