From 747674b450d6840ce9bd9aecd765cf31445ef8d3 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 22 Jul 2023 12:29:47 +0200 Subject: navigation entre sections, boucle principale, client ou prospect --- src/model/Clients.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/model/Clients.php') diff --git a/src/model/Clients.php b/src/model/Clients.php index d9dd28d..f36acc1 100644 --- a/src/model/Clients.php +++ b/src/model/Clients.php @@ -13,6 +13,7 @@ class Clients extends Model protected $telephone; protected $courriel; protected $apropos; + protected $type = 'prospect'; //~ use ModelChildren; @@ -81,6 +82,11 @@ class Clients extends Model $this->apropos = (string) $value; return $this; } + public function setType($value) + { + $this->type = (string) $value; + return $this; + } public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite -- cgit v1.2.3