flix-tech/avro-serde-php

View on GitHub
src/Objects/Schema/NamedType.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
<?php

declare(strict_types=1);

namespace FlixTech\AvroSerializer\Objects\Schema;

use FlixTech\AvroSerializer\Objects\Schema;

class NamedType extends Schema
{
    /**
     * @var string
     */
    private $name;

    public function __construct(string $name)
    {
        $this->name = $name;
    }

    public function serialize(): string
    {
        return $this->name;
    }
}