Skip to content

Commit d63a1a5

Browse files
authored
Improve Hyperf\Command\Annotation\Command (#5768)
1 parent 3584066 commit d63a1a5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Annotation/Command.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@
1717
#[Attribute(Attribute::TARGET_CLASS)]
1818
class Command extends AbstractAnnotation
1919
{
20+
public function __construct(
21+
public string $name = '',
22+
public array $arguments = [],
23+
public array $options = [],
24+
public string $description = '',
25+
public array $aliases = [],
26+
public ?string $signature = null,
27+
) {
28+
}
2029
}

0 commit comments

Comments
 (0)