<?php
/********************************************************************************
 * (c)1337 aheadware.com - All rights reserved
 ********************************************************************************/

/**
 * Class AHDB_Response_Redirect
 * Use this response if you want to trigger a redirect
 */
class AHDB_Response_Redirect extends AHDB_Response_Abstract {

    // URL to redirect to
    private $_url = '';

    /**
     * Constructor
     *
     * @param string $url URL to redirect to
     */
    function __construct( $url = '') {
        $this->_url = '' . $url;
    }

    /**
     * Getter for url
     * @return string URL to redirect to
     */
    public function get(){
        return $this->_url;
    }
}