PhpOffice\PhpPresentation\Shape\RichText\TextElement::getText PHP Метод

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

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

Usage Example

Пример #1
0
 public function testText()
 {
     $object = new TextElement();
     $this->assertEquals('', $object->getText());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setText());
     $this->assertEquals('', $object->getText());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setText('AAA'));
     $this->assertEquals('AAA', $object->getText());
 }