-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Components/queue/src/Annotation/QueueTypeStructType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Queue\Annotation; | ||
|
||
use Imi\Bean\Annotation\Base; | ||
use Imi\Bean\Annotation\Inherit; | ||
|
||
/** | ||
* 注入队列对象 | ||
* | ||
* @Annotation | ||
* | ||
* @Target({"PROPERTY", "ANNOTATION"}) | ||
* | ||
* @property string $type | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PROPERTY)] | ||
#[Inherit] | ||
class QueueTypeStructType extends Base | ||
{ | ||
public function __construct(?array $__data = null, string $type = '') | ||
{ | ||
parent::__construct(...\func_get_args()); | ||
} | ||
} |