- WIP on notes 2.x
This commit is contained in:
1 parent
2de3139c80
commit
f3be11a590
42 files changed
+270
-820
No files matched your search
@@ -5,7 +5,7 @@ namespace Ulmus\Attribute\Property;
|
||||
use Ulmus\Attribute\Attribute;
|
||||
|
||||
#[\Attribute]
|
||||
class Join {
|
||||
class Join implements ResettablePropertyInterface {
|
||||
public function __construct(
|
||||
public string $type,
|
||||
public null|string|\Stringable|array $key = null,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Ulmus\Attribute\Property;
|
||||
use Ulmus\Attribute\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Relation {
|
||||
class Relation implements ResettablePropertyInterface {
|
||||
public function __construct(
|
||||
public Relation\RelationTypeEnum|string $type,
|
||||
public \Stringable|string|array $key = "",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Attribute\Property;
|
||||
|
||||
interface ResettablePropertyInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Ulmus\Attribute\Property;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Virtual extends Field {
|
||||
class Virtual extends Field implements ResettablePropertyInterface {
|
||||
|
||||
public bool $readonly = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user