20250330#4

This commit is contained in:
User
2025-03-30 19:16:20 +03:00
parent f3458d1870
commit 9c1f6be326
6 changed files with 32 additions and 20 deletions

14
src/Attribute/Data.php Normal file
View 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,
) {}
}

View File

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

View File

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

View File

@@ -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,
) {}
}