function ConsoleSectionOutput::getVisibleContent
1 call to ConsoleSectionOutput::getVisibleContent()
- ConsoleSectionOutput::setMaxHeight in vendor/
symfony/ console/ Output/ ConsoleSectionOutput.php - Defines a maximum number of lines for this section.
File
-
vendor/
symfony/ console/ Output/ ConsoleSectionOutput.php, line 96
Class
- ConsoleSectionOutput
- @author Pierre du Plessis <pdples@gmail.com> @author Gabriel Ostrolucký <gabriel.ostrolucky@gmail.com>
Namespace
Symfony\Component\Console\OutputCode
public function getVisibleContent() : string {
if (0 === $this->maxHeight) {
return $this->getContent();
}
return implode('', \array_slice($this->content, -$this->maxHeight));
}