<?php
/**
 * Created by PhpStorm.
 * User: jiuli
 * Date: 2018/7/31
 * Time: 上午10:13
 */

namespace Mainto\RpcServer\RpcAnnotations;


use Doctrine\Common\Annotations\Annotation\Attribute;
use Doctrine\Common\Annotations\Annotation\Attributes;

/**
 * Class RpcMessageHook
 * @package Mainto\RpcServer\RpcAnnotations
 *
 * @Annotation
 * @Target({"METHOD"})
 *
 * @Attributes({
 *     @Attribute("name", type = "string"),
 * })
 */
class RpcMessageHook {
    /**
     * 请求方法
     *
     * @Required
     * @var string
     */
    public string $name;
}