_argb = $pARGB; } /** * Get ARGB * * @return string */ public function getARGB() { return $this->_argb; } /** * Set ARGB * * @param string $pValue */ public function setARGB($pValue = PHPPowerPoint_Style_Color::COLOR_BLACK) { if ($pValue == '') { $pValue = PHPPowerPoint_Style_Color::COLOR_BLACK; } $this->_argb = $pValue; } /** * Get RGB * * @return string */ public function getRGB() { return substr($this->_argb, 2); } /** * Set RGB * * @param string $pValue */ public function setRGB($pValue = '000000') { if ($pValue == '') { $pValue = '000000'; } $this->_argb = 'FF' . $pValue; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5( $this->_argb . __CLASS__ ); } /** * Hash index * * @var string */ private $_hashIndex; /** * 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; } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if (is_object($value)) { $this->$key = clone $value; } else { $this->$key = $value; } } } }