customFieldId = $customFieldId; $this->label = $label; $this->position = $position; } /** * @return Id */ public function getId() { return $this->id; } /** * @param Id $id */ public function setId($id) { $this->id = $id; } /** * @return Id */ public function getCustomFieldId() { return $this->customFieldId; } /** * @param Id $customFieldId */ public function setCustomFieldId($customFieldId) { $this->customFieldId = $customFieldId; } /** * @return Label */ public function getLabel() { return $this->label; } /** * @param Label $label */ public function setLabel($label) { $this->label = $label; } /** * @return IntegerValue */ public function getPosition() { return $this->position; } /** * @param IntegerValue $position */ public function setPosition($position) { $this->position = $position; } /** * @return array */ public function toArray() { return [ 'id' => null !== $this->getId() ? $this->getId()->getValue() : null, 'customFieldId' => $this->getCustomFieldId()->getValue(), 'label' => $this->getLabel()->getValue(), 'position' => $this->getPosition()->getValue(), ]; } }