mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
initial 2.0.0-a2 commit
This commit is contained in:
@@ -9,12 +9,12 @@ use Doctrine\Common\Annotations\Annotation\Target;
|
||||
use ZM\Annotation\AnnotationBase;
|
||||
|
||||
/**
|
||||
* Class OnEvent
|
||||
* Class HandleEvent
|
||||
* @package ZM\Annotation\Swoole
|
||||
* @Annotation
|
||||
* @Target("METHOD")
|
||||
*/
|
||||
class OnEvent extends AnnotationBase
|
||||
class HandleEvent extends AnnotationBase
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -14,5 +14,8 @@ use ZM\Annotation\AnnotationBase;
|
||||
*/
|
||||
class OnStart extends AnnotationBase
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $worker_id = 0;
|
||||
}
|
||||
|
||||
@@ -22,4 +22,9 @@ class OnTick extends AnnotationBase
|
||||
* @Required()
|
||||
*/
|
||||
public $tick_ms;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $worker_id = 0;
|
||||
}
|
||||
|
||||
@@ -10,12 +10,12 @@ use ZM\Annotation\Interfaces\Level;
|
||||
use ZM\Annotation\Interfaces\Rule;
|
||||
|
||||
/**
|
||||
* Class SwooleEventAt
|
||||
* Class SwooleEvent
|
||||
* @Annotation
|
||||
* @Target("ALL")
|
||||
* @package ZM\Annotation\Swoole
|
||||
*/
|
||||
class SwooleEventAt extends AnnotationBase implements Rule, Level
|
||||
class SwooleEvent extends AnnotationBase implements Rule, Level
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -73,4 +73,4 @@ class SwooleEventAt extends AnnotationBase implements Rule, Level
|
||||
$this->level = $level;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
src/ZM/Annotation/Swoole/SwooleSetup.php
Normal file
18
src/ZM/Annotation/Swoole/SwooleSetup.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Annotation\Swoole;
|
||||
|
||||
|
||||
use Doctrine\Common\Annotations\Annotation\Target;
|
||||
use ZM\Annotation\AnnotationBase;
|
||||
|
||||
/**
|
||||
* Class SwooleSetup
|
||||
* @package ZM\Annotation\Swoole
|
||||
* @Annotation
|
||||
* @Target("METHOD")
|
||||
*/
|
||||
class SwooleSetup extends AnnotationBase
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user