- WIP on database migration

This commit is contained in:
mcndave committed 2023-07-14 19:14:50 -04:00
1 parent f66ac02bcd
commit 5035a65672
6 files changed
+131 -52

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Lean\Console\Lib\Database;
class Definition
{
public function __construct(
public string $entity,
public string|null $field = null,
public array|null $definition = null,
public null|Modifier $modifier = null,
public null|Definition $previous = null,
public null|string $action = null,
) {}
public function toArray() : array
{
return array_filter(get_object_vars($this));
}
}