| @@ 66-95 (lines=30) @@ | ||
| 63 | * @param LoggerInterface $logger |
|
| 64 | * @param Time $timeHelper |
|
| 65 | */ |
|
| 66 | public function __construct( |
|
| 67 | $command, |
|
| 68 | $permission, |
|
| 69 | array $aliases = [], |
|
| 70 | $functionName, |
|
| 71 | $parameterDescription, |
|
| 72 | AdminGroups $adminGroupsHelper, |
|
| 73 | Connection $connection, |
|
| 74 | ChatNotification $chatNotification, |
|
| 75 | PlayerStorage $playerStorage, |
|
| 76 | LoggerInterface $logger, |
|
| 77 | Time $timeHelper |
|
| 78 | ) { |
|
| 79 | parent::__construct( |
|
| 80 | $command, |
|
| 81 | $permission, |
|
| 82 | $aliases, |
|
| 83 | $adminGroupsHelper, |
|
| 84 | $connection, |
|
| 85 | $chatNotification, |
|
| 86 | $playerStorage, |
|
| 87 | $logger, |
|
| 88 | $timeHelper |
|
| 89 | ); |
|
| 90 | ||
| 91 | $this->description = 'expansion_admin_chat.'.strtolower($functionName).'.description'; |
|
| 92 | $this->chatMessage = 'expansion_admin_chat.'.strtolower($functionName).'.msg'; |
|
| 93 | $this->functionName = (string)$functionName; |
|
| 94 | $this->parameterDescription = (string)$parameterDescription; |
|
| 95 | } |
|
| 96 | ||
| 97 | ||
| 98 | /** |
|
| @@ 75-106 (lines=32) @@ | ||
| 72 | * @param LoggerInterface $logger |
|
| 73 | * @param Time $timeHelper |
|
| 74 | */ |
|
| 75 | public function __construct( |
|
| 76 | $command, |
|
| 77 | $permission, |
|
| 78 | array $aliases = [], |
|
| 79 | $functionName, |
|
| 80 | $parameterLoginDescription, |
|
| 81 | $parameterReasonDescription, |
|
| 82 | AdminGroups $adminGroupsHelper, |
|
| 83 | Connection $connection, |
|
| 84 | ChatNotification $chatNotification, |
|
| 85 | PlayerStorage $playerStorage, |
|
| 86 | LoggerInterface $logger, |
|
| 87 | Time $timeHelper |
|
| 88 | ) { |
|
| 89 | parent::__construct( |
|
| 90 | $command, |
|
| 91 | $permission, |
|
| 92 | $aliases, |
|
| 93 | $adminGroupsHelper, |
|
| 94 | $connection, |
|
| 95 | $chatNotification, |
|
| 96 | $playerStorage, |
|
| 97 | $logger, |
|
| 98 | $timeHelper |
|
| 99 | ); |
|
| 100 | ||
| 101 | $this->description = 'expansion_admin_chat.'.strtolower($functionName).'.description'; |
|
| 102 | $this->chatMessage = 'expansion_admin_chat.'.strtolower($functionName).'.msg'; |
|
| 103 | $this->functionName = $functionName; |
|
| 104 | $this->parameterLoginDescription = $parameterLoginDescription; |
|
| 105 | $this->parameterReasonDescription = $parameterReasonDescription; |
|
| 106 | } |
|
| 107 | ||
| 108 | ||
| 109 | /** |
|