Gets the command that is executed.
public function getCommand() : ?Command { return $this->command; }