This commit is contained in:
2021-09-24 17:22:02 +08:00
parent 0aafbb03e2
commit dbc30827f8
86 changed files with 5 additions and 4 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace Annotation\Route;
use 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')
{
}
}