Почистил мусор
This commit is contained in:
parent
5ee9eddb08
commit
4313b361e4
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rinsvent\DTO2Data\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)]
|
||||
class HandleTags
|
||||
{
|
||||
public function __construct(
|
||||
public string $method,
|
||||
) {}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest;
|
||||
|
||||
use Rinsvent\DTO2Data\Attribute\DataPath;
|
||||
use Rinsvent\DTO2Data\Attribute\HandleTags;
|
||||
|
||||
#[HandleTags(method: 'getTags')]
|
||||
class HelloTagsRequest extends HelloRequest
|
||||
{
|
||||
#[DataPath('fake_age2', tags: ['surname-group'])]
|
||||
public int $age;
|
||||
|
||||
public function getTags(array $tags)
|
||||
{
|
||||
return 'Surname1234' === trim(($this->surname ?? '')) ? ['surname-group'] : $tags;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user