diff --git a/src/Storage.php b/src/Storage.php index 818c46b..21106fb 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -8,6 +8,14 @@ class Storage */ private $blacklist; + /** + * @param array $blacklist + */ + public function __construct(array $blacklist = []) + { + $this->blacklist = $blacklist; + } + /** * @return array with current blacklist */ @@ -35,15 +43,6 @@ class Storage public function setBlacklist(array $items) { $this->blacklist = $items; - return $this; } - - /** - * @param array $blacklist - */ - public function __construct(array $blacklist = []) - { - $this->blacklist = $blacklist; - } } diff --git a/src/TempMailBuster.php b/src/TempMailBuster.php index a291088..14e9ffa 100644 --- a/src/TempMailBuster.php +++ b/src/TempMailBuster.php @@ -8,6 +8,14 @@ class TempMailBuster */ private $storage; + /** + * @param Storage $storage + */ + public function __construct(Storage $storage) + { + $this->storage = $storage; + } + /** * @return Storage */ @@ -52,19 +60,10 @@ class TempMailBuster /** * @param array $list - * * @return string */ protected function buildRegex(array $list) { return '/^(' . implode('|', $list) . ')$/'; } - - /** - * @param Storage $storage - */ - public function __construct(Storage $storage) - { - $this->storage = $storage; - } }