summaryrefslogtreecommitdiff
path: root/src/model/Clients.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Clients.php')
-rw-r--r--src/model/Clients.php6
1 files changed, 6 insertions, 0 deletions
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
13 protected $telephone; 13 protected $telephone;
14 protected $courriel; 14 protected $courriel;
15 protected $apropos; 15 protected $apropos;
16 protected $type = 'prospect';
16 17
17 //~ use ModelChildren; 18 //~ use ModelChildren;
18 19
@@ -81,6 +82,11 @@ class Clients extends Model
81 $this->apropos = (string) $value; 82 $this->apropos = (string) $value;
82 return $this; 83 return $this;
83 } 84 }
85 public function setType($value)
86 {
87 $this->type = (string) $value;
88 return $this;
89 }
84 90
85 91
86 public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite 92 public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite