for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Offset class.
*
* @package YetiForcePDF\Layout\Coordinates
* @copyright YetiForce Sp. z o.o
* @license MIT
* @author Rafal Pospiech <[email protected]>
*/
namespace YetiForcePDF\Layout\Coordinates;
use YetiForcePDF\Layout\Box;
* Class Offset.
class Offset extends \YetiForcePDF\Base
{
* @var Box
protected $box;
* Offset top.
* @var string|null
protected $top;
* Offset left.
* @var string
protected $left = '0';
* Get offset top.
* @return string
public function getTop()
return $this->top;
}
* Set offset top.
* @param string $top
* @return $this
public function setTop(string $top)
$this->top = $top;
return $this;
* Get offset left.
public function getLeft()
return $this->left;
* Set offset left.
* @param string $left
public function setLeft(string $left)
$this->left = $left;
* Set box.
* @param \YetiForcePDF\Layout\Box $box
public function setBox(Box $box)
$this->box = $box;
* Get box.
* @return \YetiForcePDF\Layout\Box
public function getBox()
return $this->box;