Files
kiri-core/note/Target.php
T
2021-08-24 18:24:46 +08:00

29 lines
359 B
PHP

<?php
namespace Annotation;
/**
* Class Target
* @package 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)
{
}
}