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

setAuthor() public method

public setAuthor ( Author $author ) : Comment
$author PhpOffice\PhpPresentation\Shape\Comment\Author
return Comment
    public function setAuthor(Author $author)
    {
        $this->author = $author;
        return $this;
    }

Usage Example

Example #1
0
 public function testGetSetAuthor()
 {
     $object = new Comment();
     $oStub = $this->getMock('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author');
     $this->assertNull($object->getAuthor());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setAuthor($oStub));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author', $object->getAuthor());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Comment::setAuthor