public function __construct()
{
// Initialise values
$this->container = null;
$this->offsetX = 0;
$this->offsetY = 0;
$this->width = 0;
$this->height = 0;
$this->rotation = 0;
$this->fill = new Style\Fill();
$this->border = new Style\Border();
$this->shadow = new Style\Shadow();
$this->border->setLineStyle(Style\Border::LINE_NONE);
}
/** * Create a new \PhpOffice\PhpPresentation\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); }