Поправил описание атрибутов

master v0.0.16
Sipachev Igor 3 years ago
parent 642dd026f1
commit 59f37226ee
  1. 2
      src/Attribute/DTOMeta.php
  2. 2
      src/Attribute/HandleTags.php
  3. 2
      src/Attribute/PropertyPath.php
  4. 2
      src/Attribute/VirtualProperty.php
  5. 2
      src/Transformer/Meta.php
  6. 2
      src/Transformer/Trim.php

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Attribute; namespace Rinsvent\Data2DTO\Attribute;
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class DTOMeta class DTOMeta
{ {
public function __construct( public function __construct(

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Attribute; namespace Rinsvent\Data2DTO\Attribute;
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class HandleTags class HandleTags
{ {
public function __construct( public function __construct(

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Attribute; namespace Rinsvent\Data2DTO\Attribute;
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class PropertyPath class PropertyPath
{ {
public function __construct( public function __construct(

@ -3,7 +3,7 @@
namespace Rinsvent\Data2DTO\Attribute; namespace Rinsvent\Data2DTO\Attribute;
/** @property string[] $tags */ /** @property string[] $tags */
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class VirtualProperty class VirtualProperty
{ {
public function __construct( public function __construct(

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Transformer; namespace Rinsvent\Data2DTO\Transformer;
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
abstract class Meta abstract class Meta
{ {
public const TYPE = 'simple'; public const TYPE = 'simple';

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Transformer; namespace Rinsvent\Data2DTO\Transformer;
#[\Attribute] #[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class Trim extends Meta class Trim extends Meta
{ {
public function __construct( public function __construct(

Loading…
Cancel
Save