Проинтегрировал виртуальное поле

Чтобы можно было заполнить дто, когда нет такого ключа в данных.
master v0.0.5
Rinsvent 3 years ago
parent e479206af0
commit c49bac2315
  1. 2
      src/Attribute/VirtualProperty.php

@ -2,11 +2,11 @@
namespace Rinsvent\Data2DTO\Attribute; namespace Rinsvent\Data2DTO\Attribute;
/** @property string[] $tags */
#[\Attribute] #[\Attribute]
class VirtualProperty class VirtualProperty
{ {
public function __construct( public function __construct(
/** @var string[] $tags */
public array $tags = ['default'] public array $tags = ['default']
) {} ) {}
} }
Loading…
Cancel
Save