This commit is contained in:
2021-03-08 13:41:46 +08:00
parent 250db97299
commit 8add053094
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Annotation;
#[\Attribute(\Attribute::TARGET_METHOD)] class Port extends Attribute
{
/**
* Port constructor.
* @param int $port
*/
public function __construct(public int $port)
{
}
/**
* @param array $handler
* @return mixed
*/
public function execute(array $handler): mixed
{
return parent::execute($handler); // TODO: Change the autogenerated stub
}
}