PhpOffice\PhpPresentation\Slide::setName PHP Method

setName() public method

Set the name of the slide
public setName ( string $name = null )
$name string
    public function setName($name = null)
    {
        $this->name = $name;
        return $this;
    }

Usage Example

Example #1
0
 public function testName()
 {
     $object = new Slide();
     $this->assertNull($object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setName('AAAA'));
     $this->assertEquals('AAAA', $object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setName());
     $this->assertNull($object->getName());
 }