for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Muhammad Hasan Shahid <[email protected]>
* Mindline Analytics Gmbh
*/
namespace PhpOffice\PhpPresentation\Shape;
use PhpOffice\PhpPresentation\AbstractShape;
use PhpOffice\PhpPresentation\ComparableInterface;
use PhpOffice\PhpPresentation\Style\Border;
* Class ArrowPointer
* @package PhpOffice\PhpPresentation\Shape
* This class is responsible for making arrow pointer
class ArrowPointer extends AbstractShape implements ComparableInterface
{
* Create a new \PhpOffice\PhpPresentation\Shape\ArrowPointer 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);
}
* Get hash code
* @return string Hash code
public function getHashCode()
return md5($this->getBorder()->getLineStyle() . parent::getHashCode() . __CLASS__);