Example #1
0
 /**
  * Get hash code
  *
  * @return string Hash code
  */
 public function getHashCode()
 {
     return md5($this->position . $this->offsetX . $this->offsetY . $this->width . $this->height . $this->font->getHashCode() . $this->border->getHashCode() . $this->fill->getHashCode() . $this->alignment->getHashCode() . ($this->visible ? 't' : 'f') . __CLASS__);
 }
 /**
  * Test get/set hash index
  */
 public function testSetGetHashIndex()
 {
     $value = md5(rand(1, 100));
     $object = new Alignment();
     $object->setHashIndex($value);
     $this->assertEquals($value, $object->getHashIndex());
 }