Is it wise to create a separate db-table class just to define a table name for authentication purposes?
It is not necessary to create a separate db-table class just to define a table name for authentication purposes. Instead, you can simply define the table name within the authentication class itself or in a configuration file. This approach keeps the code more organized and avoids unnecessary complexity.
class Authentication {
private $tableName = 'users';
public function __construct() {
// Constructor logic
}
// Other methods
}