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

master v0.0.10
Rinsvent 3 years ago
parent 5ee9eddb08
commit 4313b361e4
  1. 12
      src/Attribute/HandleTags.php
  2. 18
      tests/unit/Converter/fixtures/FillTest/HelloTagsRequest.php

@ -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…
Cancel
Save