Files
kiri-core/Annotation/Kafka.php
T
as2252258@163.com 7686c0a96c modify
2021-04-11 16:23:20 +08:00

36 lines
529 B
PHP

<?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, public string $groupId)
{
}
/**
* @param array $handler
* @return mixed
*/
public function execute(array $handler): mixed
{
return parent::execute($handler); // TODO: Change the autogenerated stub
}
}