azure-storage-common/src/Common/Internal/Serialization/XmlSerializer.php
private static function getInstanceAttributes($targetObject, array $methodArray)
    {
        foreach ($methodArray as $method) {
            if ($method->name == 'getAttributes') {
                $classProperty = $method->invoke($targetObject);
                return $classProperty;
            }
        }
        return null;
    }
private static function getInstanceAttributes($targetObject, array $methodArray)
    {
        foreach ($methodArray as $method) {
            if ($method->name == 'getAttributes') {
                $classProperty = $method->invoke($targetObject);
                return $classProperty;
            }
        }
        return null;
    }
Gets the attributes of a specified object if get attributes
method is exposed.

@param object $targetObject The target object.
@param array  $methodArray  The array of method of the target object.

@return mixed