<?php
    /**
     * Base entity file.
     *
     * Creates the entity and makes it available.
     *
     * @category Entity
     */

    /**
     * Entity superclass.
     *
     * Every other entity must inherit from this one. It represents a database
     * entity.
     * 
     * @abstract
     * @category Entity
     */
    abstract class Entity{

        /**
         * @var resource Database connection.
         */
        public $db;

        /**
         * Constructor.
         *
         * Sets the database conection and the language.
         *
         * @param resource $db Connection to the database.
         */
        public function __construct($db){
            $this->db = $db;
        }
    }
?>

