PHP Classes

File: src/DatabaseDriver.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha   PHP Database Backup   src/DatabaseDriver.php   Download  
File: src/DatabaseDriver.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Database Backup
Take a database backup periodically
Author: By
Last change:
Date: 9 months ago
Size: 249 bytes
 

Contents

Class file image Download
<?php

namespace DatabaseBackup;

enum DatabaseDriver
{
    case
MYSQL;
    case
POSTGRES;

    public function
port(): int
   
{
        return
match ($this) {
           
self::MYSQL => 3306,
           
self::POSTGRES => 5432,
        };
    }
}