PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
CommandData.php
1<?php
2
3/*
4 * This file is part of BedrockProtocol.
5 * Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6 *
7 * BedrockProtocol is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol\types\command;
16
22 public function __construct(
23 public string $name,
24 public string $description,
25 public int $flags,
26 public int $permission,
27 public ?CommandEnum $aliases,
28 public array $overloads,
29 public array $chainedSubCommandData
30 ){
31 (function(CommandOverload ...$overloads) : void{})(...$overloads);
32 (function(ChainedSubCommandData ...$chainedSubCommandData) : void{})(...$chainedSubCommandData);
33 }
34
35 public function getName() : string{
36 return $this->name;
37 }
38
39 public function getDescription() : string{
40 return $this->description;
41 }
42
43 public function getFlags() : int{
44 return $this->flags;
45 }
46
47 public function getPermission() : int{
48 return $this->permission;
49 }
50
51 public function getAliases() : ?CommandEnum{
52 return $this->aliases;
53 }
54
58 public function getOverloads() : array{
59 return $this->overloads;
60 }
61
65 public function getChainedSubCommandData() : array{
66 return $this->chainedSubCommandData;
67 }
68}
__construct(public string $name, public string $description, public int $flags, public int $permission, public ?CommandEnum $aliases, public array $overloads, public array $chainedSubCommandData)
Definition: CommandData.php:22