2021-03-24 23:34:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ZM\Annotation\Command;
|
|
|
|
|
|
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Required;
|
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
2021-03-29 15:34:24 +08:00
|
|
|
use ZM\Annotation\AnnotationBase;
|
2021-03-24 23:34:46 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class TerminalCommand
|
|
|
|
|
* @package ZM\Annotation\Command
|
|
|
|
|
* @Annotation
|
|
|
|
|
* @Target("METHOD")
|
|
|
|
|
*/
|
2021-03-29 15:34:24 +08:00
|
|
|
class TerminalCommand extends AnnotationBase
|
2021-03-24 23:34:46 +08:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @var string
|
|
|
|
|
* @Required()
|
|
|
|
|
*/
|
|
|
|
|
public $command;
|
|
|
|
|
|
2021-03-29 15:34:24 +08:00
|
|
|
public $alias = '';
|
|
|
|
|
|
2021-03-24 23:34:46 +08:00
|
|
|
/**
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public $description = "";
|
|
|
|
|
}
|