PhpOffice\PhpPresentation\Shape\Comment::setText PHP Method

setText() public method

public setText ( string $text = '' ) : Comment
$text string
return Comment
    public function setText($text = '')
    {
        $this->text = $text;
        return $this;
    }

Usage Example

Example #1
0
 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::setText