This commit is contained in:
2020-12-14 19:03:05 +08:00
parent e284c5d324
commit 4549364baf
9 changed files with 389 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace Annotation;
/**
* Class Socket
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class Socket
{
const CLOSE = 'CLOSE';
const MESSAGE = 'MESSAGE';
const HANDSHAKE = 'HANDSHAKE';
/**
* Socket constructor.
* @param string $event
* @param string|null $uri
*/
public function __construct(
public string $event,
public ?string $uri
)
{
}
}