You are here

public function OutputFormatterStyleStack::getCurrent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Formatter/OutputFormatterStyleStack.php \Symfony\Component\Console\Formatter\OutputFormatterStyleStack::getCurrent()

Computes current style with stacks top codes.

Return value

OutputFormatterStyle

File

vendor/symfony/console/Formatter/OutputFormatterStyleStack.php, line 93

Class

OutputFormatterStyleStack
@author Jean-François Simon <contact@jfsimon.fr>

Namespace

Symfony\Component\Console\Formatter

Code

public function getCurrent() {
  if (empty($this->styles)) {
    return $this->emptyStyle;
  }
  return $this->styles[count($this->styles) - 1];
}