|
@@ -68,6 +68,22 @@ abstract class Output implements OutputInterface
|
|
|
self::$styles[strtolower($name)] = $options;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Gets style options from style with specified name.
|
|
|
+ *
|
|
|
+ * @param string $name
|
|
|
+ *
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
+ static public function getStyle($name)
|
|
|
+ {
|
|
|
+ if (!isset(self::$styles[strtolower($name)])) {
|
|
|
+ throw new \InvalidArgumentException('Undefined style: ' . $name);
|
|
|
+ }
|
|
|
+
|
|
|
+ return self::$styles[strtolower($name)];
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Sets the decorated flag.
|
|
|
*
|