PhpOffice\PhpPresentation\Style\Color::getHashCode PHP Method

getHashCode() public method

Get hash code
public getHashCode ( ) : string
return string Hash code
    public function getHashCode()
    {
        return md5($this->argb . __CLASS__);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Get hash code
  *
  * @return string Hash code
  */
 public function getHashCode()
 {
     return md5($this->name . $this->size . ($this->bold ? 't' : 'f') . ($this->italic ? 't' : 'f') . ($this->superScript ? 't' : 'f') . ($this->subScript ? 't' : 'f') . $this->underline . ($this->strikethrough ? 't' : 'f') . $this->color->getHashCode() . __CLASS__);
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Color::getHashCode