Files
kiri-core/Annotation/Kafka.php
T

36 lines
529 B
PHP
Raw Normal View History

2021-04-11 16:22:21 +08:00
<?php
namespace Annotation;
/**
* Class Kafka
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_CLASS)] class Kafka extends Attribute
{
/**
* Kafka constructor.
* @param string $topic
*/
2021-04-11 16:23:20 +08:00
public function __construct(public string $topic, public string $groupId)
2021-04-11 16:22:21 +08:00
{
}
/**
* @param array $handler
* @return mixed
*/
public function execute(array $handler): mixed
{
return parent::execute($handler); // TODO: Change the autogenerated stub
}
}