PhpOffice\PhpPresentation\Slide::getName PHP Method

getName() public method

Get the name of the slide
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

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());
 }