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; } }