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());
// Set a basic colorMap
$this->colorMap = new ColorMap();
// Set a white background
$this->background = new BackgroundColor();
$this->background->setColor(new Color(Color::COLOR_WHITE));
// Set basic textStyles
$this->textStyles = new TextStyle(true);
// Set basic scheme colors
foreach ($this->defaultSchemeColor as $key => $value) {
$oSchemeColor = new SchemeColor();
$oSchemeColor->setValue($key);
$oSchemeColor->setRGB($value);
$this->addSchemeColor($oSchemeColor);
}
}