mirror of
https://github.com/elyby/php-tempmailbuster.git
synced 2026-10-20 20:58:04 +05:30
Used setters into class constructors
This commit is contained in:
1 parent
676d2bee6d
commit
094ef807c5
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -13,7 +13,7 @@ class Storage implements StorageInterface
|
||||
*/
|
||||
public function __construct(array $items = [])
|
||||
{
|
||||
$this->items = $items;
|
||||
$this->setItems($items);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@ class Validator
|
||||
*/
|
||||
public function __construct(StorageInterface $primaryStorage, StorageInterface $secondaryStorage = null)
|
||||
{
|
||||
$this->primaryStorage = $primaryStorage;
|
||||
$this->secondaryStorage = $secondaryStorage;
|
||||
$this->setPrimaryStorage($primaryStorage);
|
||||
$this->setSecondaryStorage($secondaryStorage);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user