_width = null; $this->_height = null; $this->_align = null; $this->_marginTop = null; $this->_marginLeft = null; $this->setWrappingStyle(self::WRAPPING_STYLE_INLINE); } public function setStyleValue($key, $value) { $this->$key = $value; } public function getWidth() { return $this->_width; } public function setWidth($pValue = null) { $this->_width = $pValue; } public function getHeight() { return $this->_height; } public function setHeight($pValue = null) { $this->_height = $pValue; } public function getAlign() { return $this->_align; } public function setAlign($pValue = null) { $this->_align = $pValue; } /** * Get Margin Top * * @return int */ public function getMarginTop() { return $this->_marginTop; } /** * Set Margin Top * * @param int $pValue * @return $this */ public function setMarginTop($pValue = null) { $this->_marginTop = $pValue; return $this; } /** * Get Margin Left * * @return int */ public function getMarginLeft() { return $this->_marginLeft; } /** * Set Margin Left * * @param int $pValue * @return $this */ public function setMarginLeft($pValue = null) { $this->_marginLeft = $pValue; return $this; } /** * @param string $wrappingStyle * @throws InvalidArgumentException * @return $this */ public function setWrappingStyle($wrappingStyle) { switch ($wrappingStyle) { case self::WRAPPING_STYLE_BEHIND: case self::WRAPPING_STYLE_INFRONT: case self::WRAPPING_STYLE_INLINE: case self::WRAPPING_STYLE_SQUARE: case self::WRAPPING_STYLE_TIGHT: $this->wrappingStyle = $wrappingStyle; break; default: throw new InvalidArgumentException('Wrapping style does not exists'); break; } return $this; } /** * @return string */ public function getWrappingStyle() { return $this->wrappingStyle; } }