PhpOffice\PhpPresentation\Shape\Chart\Series::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 ) : Series
$value string Hash index
return Series
    public function setHashIndex($value)
    {
        $this->hashIndex = $value;
        return $this;
    }

Usage Example

Example #1
0
 public function testHashIndex()
 {
     $object = new Series();
     $value = rand(1, 100);
     $this->assertEmpty($object->getHashIndex());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setHashIndex($value));
     $this->assertEquals($value, $object->getHashIndex());
 }