modify
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Kafka
|
||||||
|
* @package Annotation
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_CLASS)] class Kafka extends Attribute
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Kafka constructor.
|
||||||
|
* @param string $topic
|
||||||
|
*/
|
||||||
|
public function __construct(public string $topic)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $handler
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function execute(array $handler): mixed
|
||||||
|
{
|
||||||
|
return parent::execute($handler); // TODO: Change the autogenerated stub
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user