<?php
 /**
 * @version   $Id: AbstractType.php 10871 2013-05-30 04:06:26Z btowles $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2014 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

abstract class RokGallery_Link_AbstractType implements RokGallery_Link_Type
{
    /**
     * @param array $vars
     */
    public function __construct(array $vars)
    {
        foreach ($vars as $varname => $varvalue)
        {
            $this->$varname = $varvalue;
        }
    }

    /**
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }
}
