PhpOffice\PhpPresentation\Slide\AbstractSlide::createLineShape PHP Метод

createLineShape() публичный Метод

Create line shape
public createLineShape ( integer $fromX, integer $fromY, integer $toX, integer $toY ) : Line
$fromX integer Starting point x offset
$fromY integer Starting point y offset
$toX integer Ending point x offset
$toY integer Ending point y offset
Результат PhpOffice\PhpPresentation\Shape\Line
    public function createLineShape($fromX, $fromY, $toX, $toY)
    {
        $shape = new Line($fromX, $fromY, $toX, $toY);
        $this->addShape($shape);
        return $shape;
    }