<?php

namespace Racecore\GATracking\Tracking;

/**
 * Google Analytics Measurement PHP Class
 * Licensed under the 3-clause BSD License.
 * This source file is subject to the 3-clause BSD License that is
 * bundled with this package in the LICENSE file.  It is also available at
 * the following URL: http://www.opensource.org/licenses/BSD-3-Clause
 *
 * Google Documentation
 * https://developers.google.com/analytics/devguides/collection/protocol/v1/
 *
 * @author  Marco Rieger
 * @email   Rieger(at)racecore.de
 * @git     https://github.com/ins0
 * @url     http://www.racecore.de
 * @package Racecore\GATracking\Tracking
 */
class Factory extends AbstractTracking
{
    private $payload = array();

    public function __construct($payload)
    {
        $this->payload = $payload;
    }

    public function createPackage()
    {
        // nothing
    }

    /**
     * Returns the payload for a custom tracking package
     * @return array
     */
    public function getPackage()
    {
        return $this->payload;
    }
}
