PhpSchool\CliMenu\MenuStyle::getTitleSeparator PHP Method

getTitleSeparator() public method

public getTitleSeparator ( ) : string
return string
    public function getTitleSeparator()
    {
        return $this->titleSeparator;
    }

Usage Example

Example #1
0
 /**
  * Draw the menu to stdout
  */
 protected function draw()
 {
     $this->terminal->clean();
     $this->terminal->moveCursorToTop();
     echo "\n\n";
     if (is_string($this->title)) {
         $this->drawMenuItem(new LineBreakItem());
         $this->drawMenuItem(new StaticItem($this->title));
         $this->drawMenuItem(new LineBreakItem($this->style->getTitleSeparator()));
     }
     array_map(function ($item, $index) {
         $this->drawMenuItem($item, $index === $this->selectedItem);
     }, $this->items, array_keys($this->items));
     $this->drawMenuItem(new LineBreakItem());
     echo "\n\n";
 }
All Usage Examples Of PhpSchool\CliMenu\MenuStyle::getTitleSeparator