You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
547 B
24 lines
547 B
<?php
|
|
|
|
namespace Rinsvent\Data2DTO\Tests\unit\Converter\fixtures\FillTest\Transformer;
|
|
|
|
use Rinsvent\Data2DTO\Transformer\Meta;
|
|
use Rinsvent\Data2DTO\Transformer\TransformerInterface;
|
|
|
|
class ClassDataTransformer implements TransformerInterface
|
|
{
|
|
/**
|
|
* @param array|null $data
|
|
* @param ClassData $meta
|
|
*/
|
|
public function transform(&$data, Meta $meta): void
|
|
{
|
|
if ($data === null) {
|
|
return;
|
|
}
|
|
|
|
if (isset($data['surname'])) {
|
|
$data['surname'] = '123454321';
|
|
}
|
|
}
|
|
}
|
|
|