<?php
include_once "core/Exception.php";
include_once "http/Request.php";

abstract class ZirrorAPI_Start {

  protected $authenticated = false;

  function getAuth() {

    return $this->authenticated;

  }

  function setAuth($authenticated) {

    if ($this->login)
      throw new ApiException ( 'Login is already set.' );
    $this->authenticated = $authenticated;

  }

  function hasAuth() {

    return $this->getAuth () ? true : false;

  }

  abstract function process(ZirrorAPI_Request $request);

}
?>