mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-09 01:35:35 +08:00
update to 3.0.0-alpha2 (build 610): refactor driver
This commit is contained in:
53
src/ZM/Annotation/OneBot/OnOneBotEvent.php
Normal file
53
src/ZM/Annotation/OneBot/OnOneBotEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZM\Annotation\OneBot;
|
||||
|
||||
use Attribute;
|
||||
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
|
||||
use Doctrine\Common\Annotations\Annotation\Target;
|
||||
use ZM\Annotation\AnnotationBase;
|
||||
|
||||
/**
|
||||
* @Annotation
|
||||
* @Target("METHOD")
|
||||
* @NamedArgumentConstructor
|
||||
*/
|
||||
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
|
||||
class OnOneBotEvent extends AnnotationBase
|
||||
{
|
||||
/** @var null|string */
|
||||
public $type;
|
||||
|
||||
/** @var null|string */
|
||||
public $detail_type;
|
||||
|
||||
/** @var null|string */
|
||||
public $impl;
|
||||
|
||||
/** @var null|string */
|
||||
public $platform;
|
||||
|
||||
/** @var null|string */
|
||||
public $self_id;
|
||||
|
||||
/** @var null|string */
|
||||
public $sub_type;
|
||||
|
||||
public function __construct(
|
||||
?string $type = null,
|
||||
?string $detail_type = null,
|
||||
?string $impl = null,
|
||||
?string $platform = null,
|
||||
?string $self_id = null,
|
||||
?string $sub_type = null
|
||||
) {
|
||||
$this->type = $type;
|
||||
$this->detail_type = $detail_type;
|
||||
$this->impl = $impl;
|
||||
$this->platform = $platform;
|
||||
$this->self_id = $self_id;
|
||||
$this->sub_type = $sub_type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user