plugin/exo/Serializer/Item/Type/ClozeQuestionSerializer.php
public function deserialize($data, ClozeQuestion $clozeQuestion = null, array $options = [])
    {
        if (empty($clozeQuestion)) {
            $clozeQuestion = new ClozeQuestion();
        }
        $this->sipe('text', 'setText', $data, $clozeQuestion);

        $this->deserializeHoles($clozeQuestion, $data['holes'], $data['solutions'], $options);

        return $clozeQuestion;
    }
public function deserialize($data, ClozeQuestion $clozeQuestion = null, array $options = [])
    {
        if (empty($clozeQuestion)) {
            $clozeQuestion = new ClozeQuestion();
        }
        $this->sipe('text', 'setText', $data, $clozeQuestion);

        $this->deserializeHoles($clozeQuestion, $data['holes'], $data['solutions'], $options);

        return $clozeQuestion;
    }
public function deserialize ( $ data , ClozeQuestion $ clozeQuestion = null , array $ options = [ ] ) { if ( empty ( $ clozeQuestion ) ) { $ clozeQuestion = new ClozeQuestion ( ) ; } $ this -> sipe ( 'text' , 'setText' , $ data , $ clozeQuestion ) ; $ this -> deserializeHoles ( $ clozeQuestion , $ data [ 'holes' ] , $ data [ 'solutions' ] , $ options ) ; return $ clozeQuestion ; }
Converts raw data into a Cloze question entity.

@param array         $data
@param ClozeQuestion $clozeQuestion
@param array         $options

@return ClozeQuestion
Converts raw data into a Cloze question entity .