diff options
Diffstat (limited to 'src/model/entities/NonVendue.php')
| -rw-r--r-- | src/model/entities/NonVendue.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/model/entities/NonVendue.php b/src/model/entities/NonVendue.php index 5a8879e..d875eb5 100644 --- a/src/model/entities/NonVendue.php +++ b/src/model/entities/NonVendue.php | |||
| @@ -25,7 +25,18 @@ class NonVendue extends Prestation | |||
| 25 | return $this; | 25 | return $this; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | //public function set(string $entry, string $input): void // pas nécessaire ici | 28 | public function set(string $entry, string $input): void |
| 29 | { | ||
| 30 | $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaîne vide | ||
| 31 | switch($entry) | ||
| 32 | { | ||
| 33 | case "Tâches:": | ||
| 34 | $this->setTaches($input); | ||
| 35 | break; | ||
| 36 | default: | ||
| 37 | parent::set($entry, $input); | ||
| 38 | } | ||
| 39 | } | ||
| 29 | 40 | ||
| 30 | public function validateForm(array $data_array): bool | 41 | public function validateForm(array $data_array): bool |
| 31 | { | 42 | { |
