From 235ce5716edc2f7cbe80fdccf26eac7269587839 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 08 Jun 2026 04:38:18 +0000
Subject: [PATCH] =FavouritesManager.php and FavouritesRoutes.php fixes. Moving all logic to FavouritesManager.php. Still some left to do
---
inc/registrar/fields/Field.php | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/inc/registrar/fields/Field.php b/inc/registrar/fields/Field.php
index c1d5e33..f24de84 100644
--- a/inc/registrar/fields/Field.php
+++ b/inc/registrar/fields/Field.php
@@ -21,6 +21,10 @@
protected int $maxLength; // of characters
protected int $min;
protected int $max;
+ /**
+ * @var float $step For number fields. Indicates the amount the number increases/decreases with the plus/minus buttons
+ */
+ protected float $step;
protected string $subtype;
protected array $condition;
protected array $allowedSubtype = ['text', 'url','number','tel','email','number'];
@@ -64,6 +68,11 @@
}
}
+ public function getName():string
+ {
+ return $this->name;
+ }
+
public function setDescription(string $description):void
{
$this->description = $description;
@@ -144,6 +153,14 @@
{
return $this->max??null;
}
+ public function setStep(float $step):void
+ {
+ $this->step = $step;
+ }
+ public function getStep():?float
+ {
+ return $this->step??null;
+ }
public function setMaxLength(int $maxLength):void
{
$this->maxLength = $maxLength;
--
Gitblit v1.10.0