PhpSchool\CliMenu\MenuStyle::getTitleSeparator PHP Méthode

getTitleSeparator() public méthode

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

Usage Example

Exemple #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