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

getIndex() public method

public getIndex ( ) : integer
return integer
    public function getIndex()
    {
        return $this->idxAuthor;
    }

Usage Example

Example #1
0
 public function testGetSetIndex()
 {
     $expectedVal = rand(1, 100);
     $object = new Author();
     $this->assertNull($object->getIndex());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author', $object->setIndex($expectedVal));
     $this->assertEquals($expectedVal, $object->getIndex());
 }