<?php
/**
 * Created by PhpStorm.
 * User: jiuli
 * Date: 2018/3/25
 * Time: 下午6:16
 */

namespace Mainto\RpcServer\RpcAnnotations;

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

/**
 * Class RpcResponseHeader
 * @package Mainto\RpcServer\RpcAnnotations
 *
 * @Annotation
 * @Target({"METHOD"})
 *
 * @Attributes({
 *     @Attribute("name", type = "string"),
 *     @Attribute("value", type = "string"),
 * })
 */
class RpcResponseHeader {
    /**
     * 要求添加的Header名称
     *
     * @Required
     * @var string
     */
    public string $name;

    /**
     * 要添加的值
     *
     * @var string
     */
    public string $value;
}