public function compilePartial(BlueprintPartial $partial)
 {
     /** @var DragToBoxExercise $exercise */
     $exercise = parent::compilePartial($partial);
     $exercise->setImage($this->compiler->compileString($partial->data['image'], $this->vars));
     $exercise->setImageCount($this->compiler->compileString($partial->data['imageCount'], $this->vars));
     return $exercise;
 }
 public function compilePartial(BlueprintPartial $partial)
 {
     /** @var SelectExercise $exercise */
     $exercise = parent::compilePartial($partial);
     $exercise->setShuffle(isset($partial->data['shuffle']) ? $partial->data['shuffle'] : TRUE);
     $exercise->setAnswerOptions($this->compileOptions($partial, $this->vars));
     return $exercise;
 }