azure-storage-common/src/Common/Models/ServiceProperties.php
public function toArray()
    {
        $result = array();

        if (!empty($this->getLogging())) {
            $result[Resources::XTAG_LOGGING] =
                    $this->getLogging()->toArray();
        }

        if (!empty($this->getHourMetrics())) {
            $result[Resources::XTAG_HOUR_METRICS] =
                    $this->getHourMetrics()->toArray();
        }

        if (!empty($this->getMinuteMetrics())) {
            $result[Resources::XTAG_MINUTE_METRICS] =
                    $this->getMinuteMetrics()->toArray();
        }

        $corsesArray = $this->getCorsesArray();
        if (!empty($corsesArray)) {
            $result[Resources::XTAG_CORS] =$corsesArray;
        }

        if ($this->defaultServiceVersion != null) {
            $result[Resources::XTAG_DEFAULT_SERVICE_VERSION] = $this->defaultServiceVersion;
        }

        return $result;
    }
public function toArray()
    {
        $result = array();

        if (!empty($this->getLogging())) {
            $result[Resources::XTAG_LOGGING] =
                    $this->getLogging()->toArray();
        }

        if (!empty($this->getHourMetrics())) {
            $result[Resources::XTAG_HOUR_METRICS] =
                    $this->getHourMetrics()->toArray();
        }

        if (!empty($this->getMinuteMetrics())) {
            $result[Resources::XTAG_MINUTE_METRICS] =
                    $this->getMinuteMetrics()->toArray();
        }

        $corsesArray = $this->getCorsesArray();
        if (!empty($corsesArray)) {
            $result[Resources::XTAG_CORS] =$corsesArray;
        }

        if ($this->defaultServiceVersion != null) {
            $result[Resources::XTAG_DEFAULT_SERVICE_VERSION] = $this->defaultServiceVersion;
        }

        return $result;
    }
Converts this object to array with XML tags

@internal
@return array