src/Objects/Schema/Generation/Annotations/AvroNamespace.php
<?php
declare(strict_types=1);
namespace FlixTech\AvroSerializer\Objects\Schema\Generation\Annotations;
use FlixTech\AvroSerializer\Objects\Schema\AttributeName;
use FlixTech\AvroSerializer\Objects\Schema\Generation\SchemaAttribute;
use FlixTech\AvroSerializer\Objects\Schema\Generation\SchemaAttributes;
/**
* @Annotation
*/
class AvroNamespace implements SchemaAttribute
{
/**
* @var string
*/
public $value;
/**
* {@inheritdoc}
*/
public function name(): string
{
return AttributeName::NAMESPACE;
}
/**
* {@inheritdoc}
*/
public function value(): string
{
return $this->value;
}
/**
* {@inheritdoc}
*/
public function attributes(): SchemaAttributes
{
return new SchemaAttributes();
}
}