setUnit(self::UNIT_PT); // Backward compatibility setting // @todo Remove on 1.0.0 $this->setWrap(self::WRAPPING_STYLE_INLINE); $this->setHPos(self::POSITION_HORIZONTAL_LEFT); $this->setHPosRelTo(self::POSITION_RELATIVE_TO_CHAR); $this->setVPos(self::POSITION_VERTICAL_TOP); $this->setVPosRelTo(self::POSITION_RELATIVE_TO_LINE); } /** * Get margin top * * @return int|float */ public function getMarginTop() { return $this->getTop(); } /** * Set margin top * * @ignoreScrutinizerPatch * @param int|float $value * @return self */ public function setMarginTop($value = 0) { $this->setTop($value); return $this; } /** * Get margin left * * @return int|float */ public function getMarginLeft() { return $this->getLeft(); } /** * Set margin left * * @ignoreScrutinizerPatch * @param int|float $value * @return self */ public function setMarginLeft($value = 0) { $this->setLeft($value); return $this; } /** * Get wrapping style * * @return string */ public function getWrappingStyle() { return $this->getWrap(); } /** * Set wrapping style * * @param string $wrappingStyle * * @throws \InvalidArgumentException * * @return self */ public function setWrappingStyle($wrappingStyle) { $this->setWrap($wrappingStyle); return $this; } /** * Get positioning type * * @return string */ public function getPositioning() { return $this->getPos(); } /** * Set positioning type * * @param string $positioning * * @throws \InvalidArgumentException * * @return self */ public function setPositioning($positioning) { $this->setPos($positioning); return $this; } /** * Get horizontal alignment * * @return string */ public function getPosHorizontal() { return $this->getHPos(); } /** * Set horizontal alignment * * @param string $alignment * * @throws \InvalidArgumentException * * @return self */ public function setPosHorizontal($alignment) { $this->setHPos($alignment); return $this; } /** * Get vertical alignment * * @return string */ public function getPosVertical() { return $this->getVPos(); } /** * Set vertical alignment * * @param string $alignment * * @throws \InvalidArgumentException * * @return self */ public function setPosVertical($alignment) { $this->setVPos($alignment); return $this; } /** * Get horizontal relation * * @return string */ public function getPosHorizontalRel() { return $this->getHPosRelTo(); } /** * Set horizontal relation * * @param string $relto * * @throws \InvalidArgumentException * * @return self */ public function setPosHorizontalRel($relto) { $this->setHPosRelTo($relto); return $this; } /** * Get vertical relation * * @return string */ public function getPosVerticalRel() { return $this->getVPosRelTo(); } /** * Set vertical relation * * @param string $relto * * @throws \InvalidArgumentException * * @return self */ public function setPosVerticalRel($relto) { $this->setVPosRelTo($relto); return $this; } }