PhpOffice\PhpPresentation\PhpPresentation::addExternalSlide PHP Method

addExternalSlide() public method

Add external slide
public addExternalSlide ( Slide $slide ) : Slide
$slide Slide External slide to add
return Slide
    public function addExternalSlide(Slide $slide)
    {
        $slide->rebindParent($this);
        return $this->addSlide($slide);
    }

Usage Example

 /**
  * Test add external slide
  */
 public function testAddExternalSlide()
 {
     $origin = new PhpPresentation();
     $slide = $origin->getSlide();
     $object = new PhpPresentation();
     $object->addExternalSlide($slide);
     $this->assertEquals(2, $object->getSlideCount());
 }