PhpOffice\PhpPresentation\Shape\Chart\Axis::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;
        return $this;
    }

Usage Example

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