Http data as Laminas class

Code
<?php

use Laminas\Uri\Http;

$http = new Http('http://username:password@google.com/?q=laminas');

$http->setQuery(array('q' => 'php'));

echo 
'Password: ' $http->getPassword() . PHP_EOL;
echo 
'User: ' $http->getUser() . PHP_EOL;

$http->setPassword('abcd123');
$http->setUser('admin');

if (
$http->isValid()) {
    echo 
$http PHP_EOL;
}
Result
Password: password
User: username
http://admin:abcd123@google.com/?q=php
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8