. * */ defined('FULL_PATH') or die('restricted access!'); /** * A padding. * * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com) * @Created on 27 july 2007 */ class LibchartPadding { /** * Top padding */ public $top; /** * Right padding */ public $right; /** * Bottom padding */ public $bottom; /** * Left padding */ public $left; /** * Creates a new padding. * * @param integer Top padding * @param integer Right padding * @param integer Bottom padding * @param integer Left padding */ public function __construct($top, $right = null, $bottom = null, $left = null) { $this->top = $top; if ($right == null) { $this->right = $top; $this->bottom = $top; $this->left = $top; } else { $this->right = $right; $this->bottom = $bottom; $this->left = $left; } } }