public function __construct(Connection $connection, $command, $asUser = null)
{
$this->connection = $connection;
if (!is_string($command)) {
throw new \InvalidArgumentException("Command must be a string.");
}
$this->command = $command;
$this->asUser = $asUser;
}