move from old repository

This commit is contained in:
Jan-Niclas Loosen
2025-02-12 15:03:39 +01:00
parent b684096b4a
commit 29703314a3
19 changed files with 1097 additions and 0 deletions

21
enums/Propagation.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace DatabaseHelper\enums;
enum Propagation
{
case CASCADE;
case SET_NULL;
case NO_ACTION;
case RESTRICT;
case SET_DEFAULT;
public function toString(): string {
return match ($this) {
self::CASCADE => 'CASCADE',
self::SET_NULL => 'SET NULL',
self::NO_ACTION => 'NO ACTION',
self::RESTRICT => 'RESTRICT',
self::SET_DEFAULT => 'SET DEFAULT',
};
}
}