20250330#3
This commit is contained in:
@@ -8,7 +8,7 @@ use Attribute;
|
||||
class Entity {
|
||||
|
||||
public function __construct(
|
||||
public bool $withoutEmpty = false,
|
||||
public bool $ignorEmpty = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ namespace Rmphp\Storage\Attribute;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class EntityWithoutEmpty {}
|
||||
class EntityIgnorEmpty {}
|
||||
8
src/Attribute/EntityNoReturnIfNull.php
Normal file
8
src/Attribute/EntityNoReturnIfNull.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class EntityNoReturnIfNull {}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_CLASS)]
|
||||
class GetPropertyEmptyIfNull {}
|
||||
@@ -5,7 +5,7 @@ namespace Rmphp\Storage\Attribute;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class GetProperty {
|
||||
class Property {
|
||||
|
||||
public function __construct(
|
||||
public ?string $keyName = null,
|
||||
@@ -5,4 +5,4 @@ namespace Rmphp\Storage\Attribute;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class GetPropertyEmpty {}
|
||||
class PropertyNoReturn {}
|
||||
8
src/Attribute/PropertyNoReturnIfNull.php
Normal file
8
src/Attribute/PropertyNoReturnIfNull.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class PropertyNoReturnIfNull {}
|
||||
8
src/Attribute/ValueObjectWithoutAutoPropertyName.php
Normal file
8
src/Attribute/ValueObjectWithoutAutoPropertyName.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class ValueObjectWithoutAutoPropertyName {}
|
||||
Reference in New Issue
Block a user