diff options
Diffstat (limited to 'src/model/Clients.php')
-rw-r--r-- | src/model/Clients.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/model/Clients.php b/src/model/Clients.php index a5cc276..0f70eb6 100644 --- a/src/model/Clients.php +++ b/src/model/Clients.php | |||
@@ -124,6 +124,18 @@ class Clients extends Model | |||
124 | $this->type = (string) $value; | 124 | $this->type = (string) $value; |
125 | return $this; | 125 | return $this; |
126 | } | 126 | } |
127 | public function typeToClient(): bool | ||
128 | { | ||
129 | if($this->type != 'client') | ||
130 | { | ||
131 | $this->type = 'client'; | ||
132 | return true; | ||
133 | } | ||
134 | else | ||
135 | { | ||
136 | return false; | ||
137 | } | ||
138 | } | ||
127 | 139 | ||
128 | 140 | ||
129 | public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite | 141 | public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite |