[console] Added style stack getter in formatter.

This commit is contained in:
Jean-François Simon 2012-06-05 05:22:08 +02:00
parent 0ae5a45282
commit c80e156f96

View File

@ -138,6 +138,14 @@ class OutputFormatter implements OutputFormatterInterface
return preg_replace_callback(self::FORMAT_PATTERN, array($this, 'replaceStyle'), $message);
}
/**
* @return OutputFormatterStyleStack
*/
public function getStyleStack()
{
return $this->styleStack;
}
/**
* Replaces style of the output.
*