PhpOffice\PhpPresentation\PhpPresentation::__construct PHP Method

__construct() public method

Create a new PhpPresentation with one Slide
public __construct ( )
    public function __construct()
    {
        // Set empty Master & SlideLayout
        $this->createMasterSlide()->createSlideLayout();
        // Initialise slide collection and add one slide
        $this->createSlide();
        $this->setActiveSlideIndex();
        // Set initial document properties & layout
        $this->setDocumentProperties(new DocumentProperties());
        $this->setPresentationProperties(new PresentationProperties());
        $this->setLayout(new DocumentLayout());
    }