setUrl($pUrl); $this->setTooltip($pTooltip); } /** * Get URL * * @return string */ public function getUrl() { return $this->url; } /** * Set URL * * @param string $value * @return \PhpOffice\PhpPresentation\Shape\Hyperlink */ public function setUrl($value = '') { $this->url = $value; return $this; } /** * Get tooltip * * @return string */ public function getTooltip() { return $this->tooltip; } /** * Set tooltip * * @param string $value * @return \PhpOffice\PhpPresentation\Shape\Hyperlink */ public function setTooltip($value = '') { $this->tooltip = $value; return $this; } /** * Get slide number * * @return int */ public function getSlideNumber() { return $this->slideNumber; } /** * Set slide number * * @param int $value * @return \PhpOffice\PhpPresentation\Shape\Hyperlink */ public function setSlideNumber($value = 1) { $this->url = 'ppaction://hlinksldjump'; $this->slideNumber = $value; return $this; } /** * Is this hyperlink internal? (to another slide) * * @return boolean */ public function isInternal() { return strpos($this->url, 'ppaction://') !== false; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5($this->url . $this->tooltip . __CLASS__); } /** * Get hash index * * 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. * * @return string Hash index */ public function getHashIndex() { return $this->hashIndex; } /** * Set hash index * * 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. * * @param string $value Hash index */ public function setHashIndex($value) { $this->hashIndex = $value; } }