azure-storage-common/src/Common/Models/RetentionPolicy.php
public static function create(array $parsedResponse = null)
    {
        $result = new RetentionPolicy();
        $result->setEnabled(Utilities::toBoolean($parsedResponse['Enabled']));
        if ($result->getEnabled()) {
            $result->setDays(intval($parsedResponse['Days']));
        }

        return $result;
    }
public static function create(array $parsedResponse = null)
    {
        $result = new RetentionPolicy();
        $result->setEnabled(Utilities::toBoolean($parsedResponse['Enabled']));
        if ($result->getEnabled()) {
            $result->setDays(intval($parsedResponse['Days']));
        }

        return $result;
    }
Creates object from $parsedResponse.

@param array $parsedResponse XML response parsed into array.

@internal

@return MicrosoftAzure\Storage\Common\Models\RetentionPolicy