public static function getStyleDefinition($name)
    {
        if (!self::$styles) {
            self::$styles = self::initStyles();
        }

        if (isset(self::$styles[$name])) {
            return self::$styles[$name];
        }

        throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
    }
public static function getStyleDefinition($name)
    {
        if (!self::$styles) {
            self::$styles = self::initStyles();
        }

        if (isset(self::$styles[$name])) {
            return self::$styles[$name];
        }

        throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
    }
public static function getStyleDefinition ( $ name ) { if ( ! self :: $ styles ) { self :: $ styles = self :: initStyles ( ) ; } if ( isset ( self :: $ styles [ $ name ] ) ) { return self :: $ styles [ $ name ] ; } throw new InvalidArgumentException ( sprintf ( 'Style "%s" is not defined.' , $ name ) ) ; }
Gets a style definition by name.

@param string $name The style name

@return TableStyle
Gets a style definition by name .