PhpOffice\PhpPresentation\Style\Font::getHashCode PHP Метод

getHashCode() публичный Метод

Get hash code
public getHashCode ( ) : string
Результат 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__);
    }

Usage Example

Пример #1
0
 /**
  * Get hash code
  *
  * @return string Hash code
  */
 public function getHashCode()
 {
     $hashElements = '';
     foreach ($this->richTextElements as $element) {
         $hashElements .= $element->getHashCode();
     }
     return md5($hashElements . $this->font->getHashCode() . __CLASS__);
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Font::getHashCode