Cleans up the phpdoc comments
							parent
							
								
									b94613f049
								
							
						
					
					
						commit
						161f74f6bd
					
				| 
						 | 
				
			
			@ -13,8 +13,9 @@ class Host {
 | 
			
		|||
 | 
			
		||||
    /**
 | 
			
		||||
     * Host constructor.
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param Database $database The database connection object.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,9 +12,10 @@ class Log {
 | 
			
		|||
    private $db;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor to initialize the database connection.
 | 
			
		||||
     * Logs constructor.
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param object $database An object providing the database connection.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,8 +14,9 @@ class Participant {
 | 
			
		|||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param object $database Database instance to retrieve a connection.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,8 +13,9 @@ class Platform {
 | 
			
		|||
 | 
			
		||||
    /**
 | 
			
		||||
     * Platform constructor.
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param Database $database The database connection object.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,8 +13,9 @@ class Server {
 | 
			
		|||
 | 
			
		||||
    /**
 | 
			
		||||
     * Server constructor.
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param object $database An instance of a database connection handler.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,8 +13,9 @@ class User {
 | 
			
		|||
 | 
			
		||||
    /**
 | 
			
		||||
     * User constructor.
 | 
			
		||||
     * Initializes the database connection.
 | 
			
		||||
     *
 | 
			
		||||
     * @param object $database Database instance to retrieve a connection.
 | 
			
		||||
     * @param object $database The database object to initialize the connection.
 | 
			
		||||
     */
 | 
			
		||||
    public function __construct($database) {
 | 
			
		||||
        $this->db = $database->getConnection();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,6 +9,7 @@
 | 
			
		|||
 * @param string $message            A user-friendly message to display.
 | 
			
		||||
 * @param string $error              The detailed error message for debugging (optional).
 | 
			
		||||
 * @param string|null $environment   The environment type ('production', 'development', etc.). If null, defaults to the configured environment.
 | 
			
		||||
 *
 | 
			
		||||
 * @return string                    The appropriate message based on the environment.
 | 
			
		||||
 */
 | 
			
		||||
function getError($message, $error = '', $environment = null) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue