public function deserialize($data, GraphicQuestion $graphicQuestion = null, array $options = [])
    {
        if (empty($graphicQuestion)) {
            $graphicQuestion = new GraphicQuestion();
        }
        $this->deserializeImage($graphicQuestion, $data['image']);
        $this->deserializeAreas($graphicQuestion, $data['solutions']);

        return $graphicQuestion;
    }
public function deserialize($data, GraphicQuestion $graphicQuestion = null, array $options = [])
    {
        if (empty($graphicQuestion)) {
            $graphicQuestion = new GraphicQuestion();
        }
        $this->deserializeImage($graphicQuestion, $data['image']);
        $this->deserializeAreas($graphicQuestion, $data['solutions']);

        return $graphicQuestion;
    }
public function deserialize ( $ data , GraphicQuestion $ graphicQuestion = null , array $ options = [ ] ) { if ( empty ( $ graphicQuestion ) ) { $ graphicQuestion = new GraphicQuestion ( ) ; } $ this -> deserializeImage ( $ graphicQuestion , $ data [ 'image' ] ) ; $ this -> deserializeAreas ( $ graphicQuestion , $ data [ 'solutions' ] ) ; return $ graphicQuestion ; }
Converts raw data into a Graphic question entity.

@param array           $data
@param GraphicQuestion $graphicQuestion
@param array           $options

@return GraphicQuestion
Converts raw data into a Graphic question entity .