set($left, $right, $top, $bottom); } /** * Change side values * * @param mixed $left * @param mixed $right * @param mixed $top * @param mixed $bottom */ public function set($left = NULL, $right = NULL, $top = NULL, $bottom = NULL) { if ($left !== NULL) { $this->left = (float)$left; } if ($right !== NULL) { $this->right = (float)$right; } if ($top !== NULL) { $this->top = (float)$top; } if ($bottom !== NULL) { $this->bottom = (float)$bottom; } } /** * Add values to each side * * @param mixed $left * @param mixed $right * @param mixed $top * @param mixed $bottom */ public function add($left = NULL, $right = NULL, $top = NULL, $bottom = NULL) { if ($left !== NULL) { $this->left += (float)$left; } if ($right !== NULL) { $this->right += (float)$right; } if ($top !== NULL) { $this->top += (float)$top; } if ($bottom !== NULL) { $this->bottom += (float)$bottom; } } } registerClass('Side');