PhpOffice\PhpPresentation\Style\Alignment::getHashIndex PHP Method

getHashIndex() public method

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public getHashIndex ( ) : string
return string Hash index
    public function getHashIndex()
    {
        return $this->hashIndex;
    }

Usage Example

 /**
  * Test get/set hash index
  */
 public function testSetGetHashIndex()
 {
     $value = md5(rand(1, 100));
     $object = new Alignment();
     $object->setHashIndex($value);
     $this->assertEquals($value, $object->getHashIndex());
 }