From ba1e1ccf869b818f7a7a897264dfea05563a7796 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 07 Jun 2026 20:10:20 +0000
Subject: [PATCH] =Major overhaul of Integrations. Playing around with adding fields to post types through Registrar from an integrations' class file.

---
 inc/registrar/fields/Field.php |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/inc/registrar/fields/Field.php b/inc/registrar/fields/Field.php
index 6367202..f24de84 100644
--- a/inc/registrar/fields/Field.php
+++ b/inc/registrar/fields/Field.php
@@ -19,6 +19,12 @@
 	protected bool $quickEdit = true;	// whether to show in quick edit table
 	protected bool $quill;				// whether to use quill
 	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'];
@@ -62,6 +68,11 @@
 		}
 	}
 
+	public function getName():string
+	{
+		return $this->name;
+	}
+
 	public function setDescription(string $description):void
 	{
 		$this->description = $description;
@@ -126,7 +137,30 @@
 	{
 		return $this->section??null;
 	}
-
+	public function setMin(int $min):void
+	{
+		$this->min = $min;
+	}
+	public function getMin():?int
+	{
+		return $this->min??null;
+	}
+	public function setMax(int $max):void
+	{
+		$this->max = $max;
+	}
+	public function getMax():?int
+	{
+		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