/** * @param $result * @param $isError * @param CommandInterface $command * * @return Result */ protected function createResult($result, $isError, CommandInterface $command) { $result = new Result($result, $isError, $command); $command->setResult($result); return $result; }