<?php
namespace Newland\Toubiz\Poi\Neos\ViewHelpers\Uri\OutdoorActive;

class GpxViewHelper extends AbstractOutdoorActiveUriViewHelper
{
    /**
     * Must return a URL template that may contain one of the following placeholders:
     * - `{article}`: The complete article Object
     * - `{outdoorActive.client}`: Outdoor active project
     * - `{outdoorActive.apiKey}`: Outdoor active api Key
     *
     * @return string
     */
    protected function url(): string
    {
        return 'http://www.outdooractive.com/download.tour.gpx'
            . '?i={article.outdoorActiveId}'
            . '&project={outdoorActive.client}'
            . '&key={outdoorActive.apiKey}';
    }
}
