PhpOffice\PhpPresentation\Shape\Comment::getText PHP Méthode

getText() public méthode

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

Usage Example

 public function testGetSetText()
 {
     $expectedText = 'AABBCCDD';
     $object = new Comment();
     $this->assertNull($object->getText());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setText($expectedText));
     $this->assertEquals($expectedText, $object->getText());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Comment::getText