flix-tech/avro-serde-php

View on GitHub
src/Objects/Schema/Record/FieldAliases.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace FlixTech\AvroSerializer\Objects\Schema\Record;

class FieldAliases extends FieldOption
{
    public function __construct(string $alias, string ...$aliases)
    {
        \array_unshift($aliases, $alias);
        parent::__construct('aliases', $aliases);
    }
}