public function OutputFormatterStyleStack::getCurrent in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Formatter/OutputFormatterStyleStack.php \Symfony\Component\Console\Formatter\OutputFormatterStyleStack::getCurrent()
Computes current style with stacks top codes.
Return value
File
- vendor/
symfony/ console/ Formatter/ OutputFormatterStyleStack.php, line 93
Class
- OutputFormatterStyleStack
- @author Jean-François Simon <contact@jfsimon.fr>
Namespace
Symfony\Component\Console\FormatterCode
public function getCurrent() {
if (empty($this->styles)) {
return $this->emptyStyle;
}
return $this->styles[count($this->styles) - 1];
}