PhpOffice\PhpPresentation\Shape\Comment\Author::setName PHP Method

setName() public method

public setName ( string $name ) : Author
$name string
return Author
    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }

Usage Example

Example #1
0
 public function testGetSetName()
 {
     $expectedVal = 'AABBCCDD';
     $object = new Author();
     $this->assertNull($object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author', $object->setName($expectedVal));
     $this->assertEquals($expectedVal, $object->getName());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Comment\Author::setName