original_string: protected function getObjectProperties(ReflectionClass $ref, $value)
      {
          $props = [];
          foreach ($ref->getProperties() as $prop) {
              $props[] = $prop->getName();
          }
  
          return \array_unique(\array_merge($props, \array_keys(\get_object_vars($value))));
      }
code: protected function getObjectProperties(ReflectionClass $ref, $value)
      {
          $props = [];
          foreach ($ref->getProperties() as $prop) {
              $props[] = $prop->getName();
          }
  
          return \array_unique(\array_merge($props, \array_keys(\get_object_vars($value))));
      }
code_tokens: protected function getObjectProperties ( ReflectionClass $ ref , $ value ) { $ props = [ ] ; foreach ( $ ref -> getProperties ( ) as $ prop ) { $ props [ ] = $ prop -> getName ( ) ; } return \ array_unique ( \ array_merge ( $ props , \ array_keys ( \ get_object_vars ( $ value ) ) ) ) ; }
docstring: Return the list of properties to be serialized.
  
  @param ReflectionClass $ref
  @param $value
  
  @return array
docstring_tokens: Return the list of properties to be serialized .