コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }