29 lines
574 B
PHP
Raw Normal View History

2020-07-11 15:53:30 +08:00
<?php
declare(strict_types=1);
2020-07-11 15:53:30 +08:00
namespace ZM\Annotation\Framework;
2020-07-11 15:53:30 +08:00
use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
2020-07-11 15:53:30 +08:00
use Doctrine\Common\Annotations\Annotation\Target;
use ZM\Annotation\AnnotationBase;
/**
2022-08-13 17:00:29 +08:00
* Class Init
2020-07-11 15:53:30 +08:00
* @Annotation
* @NamedArgumentConstructor()
2020-07-11 15:53:30 +08:00
* @Target("METHOD")
2022-08-13 17:00:29 +08:00
* @since 3.0.0
2020-07-11 15:53:30 +08:00
*/
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD)]
2022-08-13 17:00:29 +08:00
class Init extends AnnotationBase
2020-07-11 15:53:30 +08:00
{
public int $worker = 0;
2022-08-13 17:00:29 +08:00
public function __construct(int $worker = 0)
{
$this->worker = $worker;
}
2020-07-11 15:53:30 +08:00
}