/** * Test get/set hash index */ public function testSetGetHashIndex() { $object = new Note(); $value = rand(1, 100); $this->assertNull($object->getHashIndex()); $object->setHashIndex($value); $this->assertEquals($value, $object->getHashIndex()); }
/** * Write the slide note * @param XMLWriter $objWriter * @param \PhpOffice\PhpPowerpoint\Slide\Note $note */ public function writeSlideNote(XMLWriter $objWriter, Note $note) { $shapesNote = $note->getShapeCollection(); if (count($shapesNote) > 0) { $objWriter->startElement('presentation:notes'); foreach ($shapesNote as $shape) { // Increment $this->shapeId ++$this->shapeId; if ($shape instanceof RichText) { $this->writeShapeTxt($objWriter, $shape); } } $objWriter->endElement(); } }
/** * * @param \PhpOffice\PhpPowerpoint\Slide\Note $note * @return \PhpOffice\PhpPowerpoint\Slide */ public function setNote(Note $note = null) { $this->slideNote = is_null($note) ? new Note() : $note; $this->slideNote->setParent($this); return $this; }