private function getBoundaryStub($x, $y, $width, $height) { $boundaryMock = new \PHPPdf\Core\Boundary(); $points = array(Point::getInstance($x, $y), Point::getInstance($x + $width, $y), Point::getInstance($x + $width, $y - $height), Point::getInstance($x, $y - $height)); foreach ($points as $point) { $boundaryMock->setNext($point); } $boundaryMock->close(); return $boundaryMock; }
public function getBoundaryStub($x, $y, $width, $height) { $boundary = new \PHPPdf\Core\Boundary(); $boundary->setNext($x, $y)->setNext($x + $width, $y)->setNext($x + $width, $y - $height)->setNext($x, $y - $height)->close(); return $boundary; }