CharacterAddCommand
extends CharacterBaseCommand
in package
Resets the viewpoint of a given character.
Table of Contents
- $game : Game
- $namespace : string|null
- __construct() : mixed
- Construct the command, using the provided Game.
- getCliLogger() : Logger
- Returns a cloned logger with a different context name.
- configure() : mixed
- execute() : int
- getCharacter() : Character|null
- getCharacterIdArgumentDefinition() : InputArgument
- namespaced() : string
Properties
$game
protected
Game
$game
$namespace
protected
string|null
$namespace
= null
Methods
__construct()
Construct the command, using the provided Game.
public
__construct(Game $game) : mixed
Parameters
- $game : Game
Return values
mixed —getCliLogger()
Returns a cloned logger with a different context name.
public
getCliLogger() : Logger
Return values
Logger —configure()
protected
configure() : mixed
Tags
Return values
mixed —execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int —getCharacter()
protected
getCharacter(string $id) : Character|null
Parameters
- $id : string
Return values
Character|null —getCharacterIdArgumentDefinition()
protected
getCharacterIdArgumentDefinition() : InputArgument
Return values
InputArgument —namespaced()
protected
namespaced(string $command) : string
Parameters
- $command : string