mirror of
https://github.com/elyby/php-tempmailbuster.git
synced 2024-11-24 07:49:45 +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 = [])
|
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)
|
public function __construct(StorageInterface $primaryStorage, StorageInterface $secondaryStorage = null)
|
||||||
{
|
{
|
||||||
$this->primaryStorage = $primaryStorage;
|
$this->setPrimaryStorage($primaryStorage);
|
||||||
$this->secondaryStorage = $secondaryStorage;
|
$this->setSecondaryStorage($secondaryStorage);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user