/** * {@inheritdoc} */ public function readResponse(ICommand $command) { $reply = $this->read(); if ($reply instanceof IReplyObject) { return $reply; } return $command->parseResponse($reply); }