20250330#2

This commit is contained in:
User
2025-03-30 15:13:47 +03:00
parent fd996d40c8
commit 1ce2a09e01
5 changed files with 24 additions and 6 deletions

View File

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

View File

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

View File

@@ -8,6 +8,7 @@ use Attribute;
class ValueObject {
public function __construct(
public bool $autoPropertyName = true,
public ?string $propertyName = null,
) {}