PhpOffice\PhpPresentation\Style\Bullet::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

示例#1
0
 /**
  * Test get/set has index
  */
 public function testSetGetHashIndex()
 {
     $object = new Bullet();
     $value = rand(1, 100);
     $object->setHashIndex($value);
     $this->assertEquals($value, $object->getHashIndex());
 }