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

        $this->deserializeSolutions($wordsQuestion, $data['solutions'], $options);

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

        $this->deserializeSolutions($wordsQuestion, $data['solutions'], $options);

        return $wordsQuestion;
    }
public function deserialize ( $ data , OpenQuestion $ wordsQuestion = null , array $ options = [ ] ) { if ( empty ( $ wordsQuestion ) ) { $ wordsQuestion = new OpenQuestion ( ) ; } $ this -> deserializeSolutions ( $ wordsQuestion , $ data [ 'solutions' ] , $ options ) ; return $ wordsQuestion ; }
Converts raw data into an Words question entity.

@param array        $data
@param OpenQuestion $wordsQuestion
@param array        $options

@return OpenQuestion
Converts raw data into an Words question entity .