<?php
/**
 * Core Detector
 *
 * API for saving user login data such as resolution, javascript support, flash version, browser, OS, etc.
 *
 * @author: Zwer 01/2013
 *
 * @copyright (c) 2013, Web.Burza
 *
 */

class Core_Detector {

   private $_config            = null;

    /**
     * Stores POST data sent to API
     *
     * @var array
     */
    protected $_data            = null;

    /**
     * Secret key for Detector_Server, scrap for now, leaving it here coz its hella cool :D
     */
    const SECRET_KEY            = ';R4Z0R_I9l1_W38.8Ur24;';

    public function __construct() {

        // nothing for now!

    }

    /**
     * Validate request, secret key sent should be identical to Detector_Server SECRET_KEY
     *
     * @return Detector_Server
     * @throws ErrorException
     */
    public function _validate()
    {
        // does nothing for now
        return;
    }


    /**
     * @param Core_Detector_Request $request
     *
     * @return \Core_Detector_Response
     */
    public function detect(Core_Detector_Request $request)
    {
        return new Core_Detector_Response($request->getData());
    }
}
