- WIP on database migration
This commit is contained in:
1 parent
f66ac02bcd
commit
5035a65672
6 files changed
+131
-52
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user