commandEnabled = $command->isEnabled(); } } /** * Disable the command. * * @return void * * @since 2.0.0 */ public function disableCommand(): void { $this->commandEnabled = false; } /** * Enable the command. * * @return void * * @since 2.0.0 */ public function enableCommand(): void { $this->commandEnabled = false; } /** * Check if the command is enabled. * * @return boolean * * @since 2.0.0 */ public function isCommandEnabled(): bool { return $this->commandEnabled; } }