initial 2.0.0-a2 commit

This commit is contained in:
jerry
2020-09-29 15:07:43 +08:00
parent 1510e2f0d0
commit f91d24aaaa
59 changed files with 2271 additions and 1475 deletions

View File

@@ -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

View File

@@ -14,5 +14,8 @@ use ZM\Annotation\AnnotationBase;
*/
class OnStart extends AnnotationBase
{
}
/**
* @var int
*/
public $worker_id = 0;
}

View File

@@ -22,4 +22,9 @@ class OnTick extends AnnotationBase
* @Required()
*/
public $tick_ms;
/**
* @var int
*/
public $worker_id = 0;
}

View File

@@ -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;
}
}
}

View 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
{
}