taches; } public function getAllWithWindowFields(): array { $common_data = parent::getAllWithWindowFields(); return array_merge($common_data, ["Tâches:" => $this->taches,]); } public function setTaches(string $value): NonVendue { $this->taches = $value; return $this; } //public function set(string $entry, string $input): void // pas nécessaire ici public function validateForm(array $data_array): bool { if(count($data_array) === 1){ return true; } else{ echo "erreur de NonVendue::validateForm(), le tableau \$data_array n'a pas la taille attendue.\n"; return false; } } public function hydrate(array $data_array): void { $this->setTaches($data_array[0]); } }