/** * @param CommandResult $result */ public function error(CommandResult $result) { $this->errors[$result->getResultId()] = $result; }