protected function _styleToString(&$style) {

        if (is_array($style)) {
            $css = $this->newStyle();
            foreach ($style as $prop => $val) {
                $css[$prop] = $val;
            }
            return $css->css();
        } elseif (is_a($style, '\\s4y\\Style')) {
            return $style->css();
        }
        return $style.PHP_EOL;
    }
protected function _styleToString(&$style) {

        if (is_array($style)) {
            $css = $this->newStyle();
            foreach ($style as $prop => $val) {
                $css[$prop] = $val;
            }
            return $css->css();
        } elseif (is_a($style, '\\s4y\\Style')) {
            return $style->css();
        }
        return $style.PHP_EOL;
    }
protected function _styleToString ( & $ style ) { if ( is_array ( $ style ) ) { $ css = $ this -> newStyle ( ) ; foreach ( $ style as $ prop => $ val ) { $ css [ $ prop ] = $ val ; } return $ css -> css ( ) ; } elseif ( is_a ( $ style , '\\s4y\\Style' ) ) { return $ style -> css ( ) ; } return $ style . PHP_EOL ; }
Converts style specified as array or Css object to string
@param $style
@return string
Converts style specified as array or Css object to string