diff options
Diffstat (limited to 'app/class/Quickcss.php')
-rw-r--r-- | app/class/Quickcss.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/app/class/Quickcss.php b/app/class/Quickcss.php index 0173763..b55a57b 100644 --- a/app/class/Quickcss.php +++ b/app/class/Quickcss.php @@ -2,7 +2,7 @@ namespace Wcms; -class Quickcss +class Quickcss extends Item { @@ -41,17 +41,7 @@ class Quickcss public function __construct($data) { - $this->hydrate($data); } - - public function hydrate($data) - { - foreach ($data as $key => $value) { - $method = 'set' . $key; - - if (method_exists($this, $method)) { - $this->$method($value); - } - } + $this->hydrate($data); } public function calc() |