20250330#1
This commit is contained in:
14
src/Attribute/Entity.php
Normal file
14
src/Attribute/Entity.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Entity {
|
||||
|
||||
public function __construct(
|
||||
public bool $withoutEmpty = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
16
src/Attribute/GetProperty.php
Normal file
16
src/Attribute/GetProperty.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class GetProperty {
|
||||
|
||||
public function __construct(
|
||||
public ?string $keyName = null,
|
||||
public bool $empty = false,
|
||||
public bool $emptyIfNull = false,
|
||||
) {}
|
||||
|
||||
}
|
||||
8
src/Attribute/GetPropertyEmpty.php
Normal file
8
src/Attribute/GetPropertyEmpty.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class GetPropertyEmpty {}
|
||||
8
src/Attribute/GetPropertyEmptyIfNull.php
Normal file
8
src/Attribute/GetPropertyEmptyIfNull.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class GetPropertyEmptyIfNull {}
|
||||
14
src/Attribute/ValueObject.php
Normal file
14
src/Attribute/ValueObject.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Storage\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class ValueObject {
|
||||
|
||||
public function __construct(
|
||||
public ?string $propertyName = null,
|
||||
) {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user