type = $this->setEnumVal($type, $stopTypes, $this->type); $this->position = $this->setNumericVal($position, $this->position); $this->leader = $this->setEnumVal($leader, $leaderTypes, $this->leader); } /** * Get stop type. * * @return string */ public function getType() { return $this->type; } /** * Set stop type. * * @param string $value * * @return self */ public function setType($value) { $enum = [ self::TAB_STOP_CLEAR, self::TAB_STOP_LEFT, self::TAB_STOP_CENTER, self::TAB_STOP_RIGHT, self::TAB_STOP_DECIMAL, self::TAB_STOP_BAR, self::TAB_STOP_NUM, ]; $this->type = $this->setEnumVal($value, $enum, $this->type); return $this; } /** * Get leader. * * @return string */ public function getLeader() { return $this->leader; } /** * Set leader. * * @param string $value * * @return self */ public function setLeader($value) { $enum = [ self::TAB_LEADER_NONE, self::TAB_LEADER_DOT, self::TAB_LEADER_HYPHEN, self::TAB_LEADER_UNDERSCORE, self::TAB_LEADER_HEAVY, self::TAB_LEADER_MIDDLEDOT, ]; $this->leader = $this->setEnumVal($value, $enum, $this->leader); return $this; } /** * Get position. * * @return float|int */ public function getPosition() { return $this->position; } /** * Set position. * * @param float|int $value * * @return self */ public function setPosition($value) { $this->position = $this->setNumericVal($value, $this->position); return $this; } }