Files
kiri-core/Annotation/Rpc/Producer.php
T
2021-03-23 13:54:34 +08:00

38 lines
536 B
PHP

<?php
namespace Annotation\Rpc;
use Annotation\Attribute;
use JetBrains\PhpStorm\Pure;
/**
* Class Producer
* @package Annotation\Rpc
*/
#[\Attribute(\Attribute::TARGET_CLASS)] class Producer extends Attribute
{
/**
* Producer constructor.
* @param string $name
*/
public function __construct(private string $name)
{
}
/**
* @param array $handler
* @return mixed
*/
#[Pure] public function execute(array $handler): mixed
{
return parent::execute($handler); // TODO: Change the autogenerated stub
}
}