Implemented SurveyChoice object

This commit is contained in:
Pierre
2018-04-22 08:31:34 +02:00
parent e3f3f8e516
commit 22f8ab582c
3 changed files with 34 additions and 11 deletions

View File

@ -67,7 +67,7 @@ class Survey extends BaseUniqueObjectFromUser {
$this->choices = $choices;
}
public function add_choice(array $choice){
public function add_choice(SurveyChoice $choice){
$this->choices[] = $choice;
}