Почистил мусор

This commit is contained in:
Rinsvent 2022-04-02 10:58:24 +07:00
parent 5ee9eddb08
commit 4313b361e4
2 changed files with 0 additions and 30 deletions

View File

@ -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,
) {}
}

View File

@ -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;
}
}