PhpOffice\PhpPresentation\Style\Color::setHashIndex PHP Метод

setHashIndex() публичный Метод

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 hash index
  */
 public function testSetGetHashIndex()
 {
     $object = new Color();
     $value = rand(1, 100);
     $object->setHashIndex($value);
     $this->assertEquals($value, $object->getHashIndex());
 }