plugin/exo/Entity/Attempt/Paper.php
public function addAnswer(Answer $answer)
    {
        if (!$this->answers->contains($answer)) {
            $this->answers->add($answer);
            $answer->setPaper($this);
        }
    }
public function addAnswer(Answer $answer)
    {
        if (!$this->answers->contains($answer)) {
            $this->answers->add($answer);
            $answer->setPaper($this);
        }
    }
public function addAnswer ( Answer $ answer ) { if ( ! $ this -> answers -> contains ( $ answer ) ) { $ this -> answers -> add ( $ answer ) ; $ answer -> setPaper ( $ this ) ; } }
Adds an answer.

@param Answer $answer
Adds an answer .