/** * Create a new \PhpOffice\PhpPowerpoint\Shape\Line instance * * @param int $fromX * @param int $fromY * @param int $toX * @param int $toY */ public function __construct($fromX, $fromY, $toX, $toY) { parent::__construct(); $this->getBorder()->setLineStyle(Border::LINE_SINGLE); $this->setOffsetX($fromX); $this->setOffsetY($fromY); $this->setWidth($toX - $fromX); $this->setHeight($toY - $fromY); }
public function __construct() { parent::__construct(); // For logic purposes. $this->offsetX = null; $this->offsetY = null; // Shape collection $this->shapeCollection = new \ArrayObject(); }
/** * Create a new \PhpOffice\PhpPowerpoint\Slide\AbstractDrawing */ public function __construct() { // Initialise values $this->name = ''; $this->description = ''; $this->resizeProportional = true; // Set image index self::$imageCounter++; $this->imageIndex = self::$imageCounter; // Initialize parent parent::__construct(); }
/** * Create a new \PhpOffice\PhpPowerpoint\Shape\RichText instance */ public function __construct() { // Initialise variables $this->richTextParagraphs = array(new Paragraph()); $this->activeParagraph = 0; // Initialize parent parent::__construct(); }