azure-storage-common/src/Common/Models/CORS.php
public function toArray()
    {
        return array(
            Resources::XTAG_ALLOWED_ORIGINS    =>
                implode(',', $this->getAllowedOrigins()),
            Resources::XTAG_ALLOWED_METHODS    =>
                implode(',', $this->getAllowedMethods()),
            Resources::XTAG_ALLOWED_HEADERS    =>
                implode(',', $this->getAllowedHeaders()),
            Resources::XTAG_EXPOSED_HEADERS    =>
                implode(',', $this->getExposedHeaders()),
            Resources::XTAG_MAX_AGE_IN_SECONDS =>
                $this->getMaxedAgeInSeconds()
        );
    }
public function toArray()
    {
        return array(
            Resources::XTAG_ALLOWED_ORIGINS    =>
                implode(',', $this->getAllowedOrigins()),
            Resources::XTAG_ALLOWED_METHODS    =>
                implode(',', $this->getAllowedMethods()),
            Resources::XTAG_ALLOWED_HEADERS    =>
                implode(',', $this->getAllowedHeaders()),
            Resources::XTAG_EXPOSED_HEADERS    =>
                implode(',', $this->getExposedHeaders()),
            Resources::XTAG_MAX_AGE_IN_SECONDS =>
                $this->getMaxedAgeInSeconds()
        );
    }
Converts this object to array with XML tags

@return array