20250330#3

This commit is contained in:
User
2025-03-30 18:35:21 +03:00
parent 1ce2a09e01
commit f3458d1870
10 changed files with 52 additions and 39 deletions

View File

@@ -8,7 +8,7 @@ use Attribute;
class Entity {
public function __construct(
public bool $withoutEmpty = false,
public bool $ignorEmpty = false,
) {}
}

View File

@@ -5,4 +5,4 @@ namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS)]
class EntityWithoutEmpty {}
class EntityIgnorEmpty {}

View File

@@ -0,0 +1,8 @@
<?php
namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS)]
class EntityNoReturnIfNull {}

View File

@@ -1,8 +0,0 @@
<?php
namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_CLASS)]
class GetPropertyEmptyIfNull {}

View File

@@ -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,

View File

@@ -5,4 +5,4 @@ namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class GetPropertyEmpty {}
class PropertyNoReturn {}

View File

@@ -0,0 +1,8 @@
<?php
namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class PropertyNoReturnIfNull {}

View File

@@ -0,0 +1,8 @@
<?php
namespace Rmphp\Storage\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS)]
class ValueObjectWithoutAutoPropertyName {}