Esempio n. 1
0
 public function testTitle()
 {
     $object = new Axis();
     $this->assertEquals('Axis Title', $object->getTitle());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Axis', $object->setTitle('AAAA'));
     $this->assertEquals('AAAA', $object->getTitle());
 }
Esempio n. 2
0
 /**
  * Get hash code
  *
  * @return string Hash code
  */
 public function getHashCode()
 {
     return md5((is_null($this->type) ? 'null' : $this->type->getHashCode()) . $this->axisX->getHashCode() . $this->axisY->getHashCode() . $this->offsetX . $this->offsetY . $this->width . $this->height . __CLASS__);
 }