plugin/exo/Serializer/Item/Type/BooleanQuestionSerializer.php
public function deserialize($data, BooleanQuestion $question = null, array $options = [])
    {
        if (empty($question)) {
            $question = new BooleanQuestion();
        }

        $this->deserializeChoices($question, $data['choices'], $data['solutions'], $options);

        return $question;
    }
public function deserialize($data, BooleanQuestion $question = null, array $options = [])
    {
        if (empty($question)) {
            $question = new BooleanQuestion();
        }

        $this->deserializeChoices($question, $data['choices'], $data['solutions'], $options);

        return $question;
    }
public function deserialize ( $ data , BooleanQuestion $ question = null , array $ options = [ ] ) { if ( empty ( $ question ) ) { $ question = new BooleanQuestion ( ) ; } $ this -> deserializeChoices ( $ question , $ data [ 'choices' ] , $ data [ 'solutions' ] , $ options ) ; return $ question ; }
Converts raw data into a Boolean question entity.

@param array           $data
@param BooleanQuestion $question
@param array           $options

@return BooleanQuestion
Converts raw data into a Boolean question entity .