20250330#4
This commit is contained in:
14
src/Attribute/Data.php
Normal file
14
src/Attribute/Data.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Data {
|
||||
|
||||
public function __construct(
|
||||
public bool $ignorEmpty = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
@@ -5,4 +5,4 @@ namespace Rmphp\Storage\Attribute;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class EntityIgnorEmpty {}
|
||||
class DataIgnorEmpty {}
|
||||
@@ -8,7 +8,7 @@ use Attribute;
|
||||
class Entity {
|
||||
|
||||
public function __construct(
|
||||
public bool $ignorEmpty = false,
|
||||
public bool $noReturnIfNull = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ class Property {
|
||||
|
||||
public function __construct(
|
||||
public ?string $keyName = null,
|
||||
public bool $empty = false,
|
||||
public bool $emptyIfNull = false,
|
||||
public bool $noReturn = false,
|
||||
public bool $noReturnIfNull = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user