This commit is contained in:
2021-08-20 14:34:10 +08:00
parent 280d2341df
commit 24e4cdc555
2 changed files with 19 additions and 1 deletions
+14
View File
@@ -11,4 +11,18 @@ namespace Annotation;
#[\Attribute(\Attribute::TARGET_CLASS)] class Target extends Attribute
{
const WORKER = 'worker';
const ALL = 'any';
const PROCESS = 'process';
const TASK = 'task';
/**
* @param string $only
*/
public function __construct(public string $only = Target::ALL)
{
}
}