public function PHPExcel_Style_Font::getHashCode in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php \PHPExcel_Style_Font::getHashCode()
* Get hash code * *
Return value
string Hash code
Overrides PHPExcel_IComparable::getHashCode
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Font.php, line 514
Class
- PHPExcel_Style_Font
- PHPExcel_Style_Font
Code
public function getHashCode() {
if ($this->_isSupervisor) {
return $this
->getSharedComponent()
->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__);
}