From 094ef807c52d5d861367c9e64006d95d395234c7 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 30 Apr 2016 12:26:39 +0300 Subject: [PATCH] Used setters into class constructors --- src/Storage.php | 2 +- src/Validator.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Storage.php b/src/Storage.php index 981f9df..67abc88 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -13,7 +13,7 @@ class Storage implements StorageInterface */ public function __construct(array $items = []) { - $this->items = $items; + $this->setItems($items); } /** diff --git a/src/Validator.php b/src/Validator.php index 99f43ff..add2ad1 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -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); } /**