<?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 RpcFormat
 * @package Mainto\RpcServer\RpcAnnotations
 *
 * @Annotation
 * @Target({"METHOD"})
 *
 * @Attributes({
 *     @Attribute("format", type = "string"),
 * })
 */
class RpcFormat {
    /**
     * 模式名称
     *
     * @Required
     * @Enum({"Raw", "Json" ,"Jsonp"})
     * @var string
     */
    public string $format = "Json";
}