public function generateRawData()
    {
        $rawData = ['id' => $this->getId()];
        $rawData['data'] = [];
        $rawData['data']['image'] = [];
        if ($this->getCreatedAt()) {
            $rawData['created_at'] = $this->getCreatedAt();
        }
        if ($this->getStatusDescription() || $this->getStatusCode()) {
            $rawData['status'] = $this->getStatus();
        }
        if ($this->getImage()) {
            $rawData['data']['image'][$this->getImageMethod()] = $this->getImage();
        }
        if ($this->getCrop()) {
            $rawData['data']['image']['crop'] = $this->getCrop();
        }
        if ($this->getConcepts()) {
            $rawData['data']['concepts'] = [];
            foreach ($this->getConcepts() as $concept) {
                $rawData['data']['concepts'][] = $concept->generateRawData();
            }
        }
        if ($this->getMetaData()) {
            $rawData['data']['metadata'] = $this->getMetaData();
        }

        return $rawData;
    }
public function generateRawData()
    {
        $rawData = ['id' => $this->getId()];
        $rawData['data'] = [];
        $rawData['data']['image'] = [];
        if ($this->getCreatedAt()) {
            $rawData['created_at'] = $this->getCreatedAt();
        }
        if ($this->getStatusDescription() || $this->getStatusCode()) {
            $rawData['status'] = $this->getStatus();
        }
        if ($this->getImage()) {
            $rawData['data']['image'][$this->getImageMethod()] = $this->getImage();
        }
        if ($this->getCrop()) {
            $rawData['data']['image']['crop'] = $this->getCrop();
        }
        if ($this->getConcepts()) {
            $rawData['data']['concepts'] = [];
            foreach ($this->getConcepts() as $concept) {
                $rawData['data']['concepts'][] = $concept->generateRawData();
            }
        }
        if ($this->getMetaData()) {
            $rawData['data']['metadata'] = $this->getMetaData();
        }

        return $rawData;
    }
public function generateRawData ( ) { $ rawData = [ 'id' => $ this -> getId ( ) ] ; $ rawData [ 'data' ] = [ ] ; $ rawData [ 'data' ] [ 'image' ] = [ ] ; if ( $ this -> getCreatedAt ( ) ) { $ rawData [ 'created_at' ] = $ this -> getCreatedAt ( ) ; } if ( $ this -> getStatusDescription ( ) || $ this -> getStatusCode ( ) ) { $ rawData [ 'status' ] = $ this -> getStatus ( ) ; } if ( $ this -> getImage ( ) ) { $ rawData [ 'data' ] [ 'image' ] [ $ this -> getImageMethod ( ) ] = $ this -> getImage ( ) ; } if ( $ this -> getCrop ( ) ) { $ rawData [ 'data' ] [ 'image' ] [ 'crop' ] = $ this -> getCrop ( ) ; } if ( $ this -> getConcepts ( ) ) { $ rawData [ 'data' ] [ 'concepts' ] = [ ] ; foreach ( $ this -> getConcepts ( ) as $ concept ) { $ rawData [ 'data' ] [ 'concepts' ] [ ] = $ concept -> generateRawData ( ) ; } } if ( $ this -> getMetaData ( ) ) { $ rawData [ 'data' ] [ 'metadata' ] = $ this -> getMetaData ( ) ; } return $ rawData ; }
Generates rawData from Input

@return array
Generates rawData from Input