setStyleByArray($style); } /** * Get alignment * * @return string */ public function getValue() { return $this->value; } /** * Set alignment * * @param string $value * @return self */ public function setValue($value = null) { if (strtolower($value) == self::ALIGN_JUSTIFY) { $value = self::ALIGN_BOTH; } $enum = array(self::ALIGN_LEFT, self::ALIGN_RIGHT, self::ALIGN_CENTER, self::ALIGN_BOTH, self::ALIGN_JUSTIFY); $this->value = $this->setEnumVal($value, $enum, $this->value); return $this; } }