original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Generates rawData from Input
  
  @return array
docstring_tokens: Generates rawData from Input