| @@ -187,8 +187,84 @@ | ||
| 187 | 187 | $this->confirmation->page = $page; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | + * Get the confirmation name. | |
| 192 | + * | |
| 193 | + * @return string | |
| 194 | + */ | |
| 195 | + public function getName(): string | |
| 196 | + { | |
| 197 | + return $this->confirmation->getName(); | |
| 198 | + } | |
| 199 | + | |
| 200 | + /** | |
| 201 | + * Set the confirmation name. | |
| 202 | + * | |
| 203 | + * @param string $name | |
| 204 | + */ | |
| 205 | + public function setName(string $name): void | |
| 206 | + { | |
| 207 | + $this->confirmation->name = $name; | |
| 208 | + } | |
| 209 | + | |
| 210 | + /** | |
| 211 | + * Get the confirmation list position. | |
| 212 | + * | |
| 213 | + * @return int | |
| 214 | + */ | |
| 215 | + public function getPosition(): int | |
| 216 | + { | |
| 217 | + return $this->confirmation->getPosition(); | |
| 218 | + } | |
| 219 | + | |
| 220 | + /** | |
| 221 | + * Set the confirmation list position. | |
| 222 | + * | |
| 223 | + * @param int $position | |
| 224 | + */ | |
| 225 | + public function setPosition(int $position): void | |
| 226 | + { | |
| 227 | + $this->confirmation->position = $position; | |
| 228 | + } | |
| 229 | + | |
| 230 | + /** | |
| 231 | + * Whether this confirmation is the default for the form. | |
| 232 | + * | |
| 233 | + * @return bool | |
| 234 | + */ | |
| 235 | + public function isDefault(): bool | |
| 236 | + { | |
| 237 | + return $this->confirmation->isDefault(); | |
| 238 | + } | |
| 239 | + | |
| 240 | + /** | |
| 241 | + * Set whether this confirmation is the default for the form. | |
| 242 | + * | |
| 243 | + * @param bool $isDefault | |
| 244 | + */ | |
| 245 | + public function setIsDefault(bool $isDefault): void | |
| 246 | + { | |
| 247 | + $this->confirmation->isDefault = $isDefault; | |
| 248 | + } | |
| 249 | + | |
| 250 | + /** | |
| 251 | + * @return array<string, mixed> | |
| 252 | + */ | |
| 253 | + public function getSmartLogic(): array | |
| 254 | + { | |
| 255 | + return $this->confirmation->getSmartLogic(); | |
| 256 | + } | |
| 257 | + | |
| 258 | + /** | |
| 259 | + * @param array<string, mixed> $smartLogic | |
| 260 | + */ | |
| 261 | + public function setSmartLogic(array $smartLogic): void | |
| 262 | + { | |
| 263 | + $this->confirmation->smartLogic = $smartLogic; | |
| 264 | + } | |
| 265 | + | |
| 266 | + /** | |
| 191 | 267 | * Get the page URL converted from page ID. |
| 192 | 268 | * |
| 193 | 269 | * @return string The page URL, empty string if page is not set or not found. |
| 194 | 270 | */ |
| @@ -206,8 +282,9 @@ | ||
| 206 | 282 | { |
| 207 | 283 | return [ |
| 208 | 284 | 'id' => $this->getId(), |
| 209 | 285 | 'formId' => $this->getFormId(), |
| 286 | + 'name' => $this->getName(), | |
| 210 | 287 | 'type' => $this->getType(), |
| 211 | 288 | 'enabled' => $this->isEnabled(), |
| 212 | 289 | 'showForm' => $this->isShowForm(), |
| 213 | 290 | 'message' => $this->getMessage(), |
| @@ -214,7 +291,10 @@ | ||
| 214 | 291 | 'url' => $this->getUrl(), |
| 215 | 292 | //TODO : Check if page is needed as we have pageUrl |
| 216 | 293 | 'page' => $this->getPage(), |
| 217 | 294 | 'pageUrl' => $this->getPageUrl(), |
| 295 | + 'position' => $this->getPosition(), | |
| 296 | + 'isDefault' => $this->isDefault(), | |
| 297 | + 'smartLogic' => $this->getSmartLogic(), | |
| 218 | 298 | ]; |
| 219 | 299 | } |
| 220 | 300 | } |