This commit is contained in:
as2252258@163.com
2021-04-11 16:22:21 +08:00
parent 60fa2cb896
commit c8f0122514
+35
View File
@@ -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
}
}