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

getAuthor() public method

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

Usage Example

 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::getAuthor