From 20fa9123d01668496c659f7f275d2d578d1896ce Mon Sep 17 00:00:00 2001 From: izica Date: Fri, 12 Oct 2018 18:23:49 +0700 Subject: [PATCH] PhpStyles->name fix --- PhpStyles.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PhpStyles.php b/PhpStyles.php index d3478ec..360eb0c 100644 --- a/PhpStyles.php +++ b/PhpStyles.php @@ -94,11 +94,13 @@ public function opacity($value, $condition) /** * @param $value - * @param $condition * @return $this */ public function name($value) { - return $this->set('opacity', $value, $condition); + if(is_string($value)){ + $this->classname = $value + } + return $this; } }