PhpSchool\CliMenu\MenuItem\SelectableItem::getText PHP Метод

getText() публичный Метод

Return the raw string of text
public getText ( ) : string
Результат string
    public function getText()
    {
        return $this->text;
    }

Usage Example

Пример #1
0
 public function testGetText()
 {
     $item = new SelectableItem('Item', function () {
     });
     $this->assertEquals('Item', $item->getText());
 }