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

This commit is contained in:
Sipachev Igor 2021-08-23 12:39:41 +07:00
parent 642dd026f1
commit 59f37226ee
6 changed files with 11 additions and 11 deletions

View File

@ -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(
@ -10,4 +10,4 @@ class DTOMeta
/** @var string[] $tags */ /** @var string[] $tags */
public array $tags = ['default'] public array $tags = ['default']
) {} ) {}
} }

View File

@ -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(

View File

@ -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(
@ -10,4 +10,4 @@ class PropertyPath
/** @var string[] $tags */ /** @var string[] $tags */
public array $tags = ['default'] public array $tags = ['default']
) {} ) {}
} }

View File

@ -3,10 +3,10 @@
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(
public array $tags = ['default'] public array $tags = ['default']
) {} ) {}
} }

View File

@ -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';
@ -12,4 +12,4 @@ abstract class Meta
public function __construct( public function __construct(
public array $tags = ['default'] public array $tags = ['default']
) {} ) {}
} }

View File

@ -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(
@ -11,4 +11,4 @@ class Trim extends Meta
) { ) {
parent::__construct(...func_get_args()); parent::__construct(...func_get_args());
} }
} }