You are here

public function PHPExcel_Style_Alignment::getHashCode in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php \PHPExcel_Style_Alignment::getHashCode()

* Get hash code * *

Return value

string Hash code

Overrides PHPExcel_IComparable::getHashCode

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php, line 443

Class

PHPExcel_Style_Alignment
PHPExcel_Style_Alignment

Code

public function getHashCode() {
  if ($this->_isSupervisor) {
    return $this
      ->getSharedComponent()
      ->getHashCode();
  }
  return md5($this->_horizontal . $this->_vertical . $this->_textRotation . ($this->_wrapText ? 't' : 'f') . ($this->_shrinkToFit ? 't' : 'f') . $this->_indent . $this->_readorder . __CLASS__);
}