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))));
    }
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))));
    }
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 ) ) ) ) ; }
Return the list of properties to be serialized.

@param ReflectionClass $ref
@param $value

@return array
Return the list of properties to be serialized .