PhpOffice\PhpPresentation\Slide::__construct PHP Method

__construct() public method

Create a new slide
public __construct ( PhpPresentation $pParent = null )
$pParent PhpPresentation
    public function __construct(PhpPresentation $pParent = null)
    {
        // Set parent
        $this->parent = $pParent;
        // Shape collection
        $this->shapeCollection = new \ArrayObject();
        // Set identifier
        $this->identifier = md5(rand(0, 9999) . time());
    }