public static function style($styleID)
    {
        if (!in_array($styleID, static::getKnownStyles())) {
            throw new Exception("Unknown style ID $styleID");
        }

        $style = new Style($styleID);

        return $style;
    }
public static function style($styleID)
    {
        if (!in_array($styleID, static::getKnownStyles())) {
            throw new Exception("Unknown style ID $styleID");
        }

        $style = new Style($styleID);

        return $style;
    }
public static function style ( $ styleID ) { if ( ! in_array ( $ styleID , static :: getKnownStyles ( ) ) ) { throw new Exception ( "Unknown style ID $styleID" ) ; } $ style = new Style ( $ styleID ) ; return $ style ; }
Format given string in chosen style

@param int $styleID

@return Style
Format given string in chosen style