PhpOffice\PhpPresentation\Slide\SlideLayout::__construct PHP Method

__construct() public method

Create a new slideLayout
public __construct ( SlideMaster $pSlideMaster )
$pSlideMaster SlideMaster
    public function __construct(SlideMaster $pSlideMaster)
    {
        // Set parent
        $this->slideMaster = $pSlideMaster;
        // Shape collection
        $this->shapeCollection = new \ArrayObject();
        // Set identifier
        $this->identifier = md5(rand(0, 9999) . time());
        // Set a basic colorMap
        $this->colorMap = new ColorMap();
    }