public function setMargin($margin) { $this->margin = $margin; $this->calculateContentWidth(); return $this; }