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

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

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Attribute;
#[\Attribute]
#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class DTOMeta
{
public function __construct(
@ -10,4 +10,4 @@ class DTOMeta
/** @var string[] $tags */
public array $tags = ['default']
) {}
}
}

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

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Attribute;
#[\Attribute]
#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
class PropertyPath
{
public function __construct(
@ -10,4 +10,4 @@ class PropertyPath
/** @var string[] $tags */
public array $tags = ['default']
) {}
}
}

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

@ -2,7 +2,7 @@
namespace Rinsvent\Data2DTO\Transformer;
#[\Attribute]
#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)]
abstract class Meta
{
public const TYPE = 'simple';
@ -12,4 +12,4 @@ abstract class Meta
public function __construct(
public array $tags = ['default']
) {}
}
}

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

Loading…
Cancel
Save