original_string: public static function getComponentPropertyValues($component)
      {
          $result = [];
  
          $result['oc.alias'] = $component->alias;
  
          $properties = $component->defineProperties();
          foreach ($properties as $name => $params) {
              $result[$name] = $component->property($name);
          }
  
          return json_encode($result);
      }
code: public static function getComponentPropertyValues($component)
      {
          $result = [];
  
          $result['oc.alias'] = $component->alias;
  
          $properties = $component->defineProperties();
          foreach ($properties as $name => $params) {
              $result[$name] = $component->property($name);
          }
  
          return json_encode($result);
      }
code_tokens: public static function getComponentPropertyValues ( $ component ) { $ result = [ ] ; $ result [ 'oc.alias' ] = $ component -> alias ; $ properties = $ component -> defineProperties ( ) ; foreach ( $ properties as $ name => $ params ) { $ result [ $ name ] = $ component -> property ( $ name ) ; } return json_encode ( $ result ) ; }
docstring: Returns a component property values.
  @param mixed $component The component object
  @return mixed
docstring_tokens: Returns a component property values .