Files
kiri-core/kiri-annotation/Route/Socket.php
T
2022-01-09 03:50:38 +08:00

32 lines
529 B
PHP

<?php
namespace Kiri\Annotation\Route;
use Kiri\Annotation\Attribute;
/**
* Class Socket
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class Socket extends Attribute
{
const CLOSE = 'CLOSE';
const MESSAGE = 'MESSAGE';
const HANDSHAKE = 'HANDSHAKE';
/**
* Socket constructor.
* @param string $event
* @param string|null $uri
* @param string $version
*/
public function __construct(string $event, ?string $uri = null, string $version = 'v.1.0')
{
}
}