original_string: public function transform($option)
      {
          $options = $this->entityToArray(OptionCategory::class, $option);
          $data    = ['data' => []];
          foreach ($options as $option) {
              $data['data'][] = [
                  'key' => $option,
              ];
          }
  
          return $data;
      }
code: public function transform($option)
      {
          $options = $this->entityToArray(OptionCategory::class, $option);
          $data    = ['data' => []];
          foreach ($options as $option) {
              $data['data'][] = [
                  'key' => $option,
              ];
          }
  
          return $data;
      }
code_tokens: public function transform ( $ option ) { $ options = $ this -> entityToArray ( OptionCategory :: class , $ option ) ; $ data = [ 'data' => [ ] ] ; foreach ( $ options as $ option ) { $ data [ 'data' ] [ ] = [ 'key' => $ option , ] ; } return $ data ; }
docstring: Transforms option category entity
  
  @param array $option OptionCategory entity
  
  @return array
docstring_tokens: Transforms option category entity