mirror of
https://github.com/elyby/php-tempmailbuster.git
synced 2024-11-08 13:42:37 +05:30
Used setters into class constructors
This commit is contained in:
parent
676d2bee6d
commit
094ef807c5
@ -13,7 +13,7 @@ class Storage implements StorageInterface
|
||||
*/
|
||||
public function __construct(array $items = [])
|
||||
{
|
||||
$this->items = $items;
|
||||
$this->setItems($items);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user