for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xls;
class Margin
{
protected $top;
protected $bottom;
protected $left;
protected $right;
protected $head;
protected $foot;
/**
* @param float $left
* @param float $right
* @param float $top
* @param float $bottom
*/
public function __construct($left, $right, $top, $bottom)
$this->top = $top;
$this->bottom = $bottom;
$this->left = $left;
$this->right = $right;
}
* @return float
public function getTop()
return $this->top;
* @return Margin
public function setTop($top)
return $this;
public function getBottom()
return $this->bottom;
public function setBottom($bottom)
public function getLeft()
return $this->left;
public function setLeft($left)
public function getRight()
return $this->right;
public function setRight($right)
public function getHead()
return $this->head;
* @param float $head
public function setHead($head)
$this->head = $head;
public function getFoot()
return $this->foot;
* @param float $foot
public function setFoot($foot)
$this->foot = $foot;
* @param float $margin
public function setAll($margin)
$this->setTop($margin);
$this->setBottom($margin);
$this->setLeft($margin);
$this->setRight($margin);