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

setHashIndex() 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 setHashIndex ( string $value )
$value string Hash index
    public function setHashIndex($value)
    {
        $this->hashIndex = $value;
    }

Usage Example

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