42 lines
683 B
PHP
42 lines
683 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Diffhead\PHP\LaravelRabbitMQ\Object;
|
|
|
|
class Connection
|
|
{
|
|
public function __construct(
|
|
private string $host,
|
|
private int $port,
|
|
private string $user,
|
|
private string $password,
|
|
private string $vhost,
|
|
) {}
|
|
|
|
public function host(): string
|
|
{
|
|
return $this->host;
|
|
}
|
|
|
|
public function port(): int
|
|
{
|
|
return $this->port;
|
|
}
|
|
|
|
public function user(): string
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
public function password(): string
|
|
{
|
|
return $this->password;
|
|
}
|
|
|
|
public function vhost(): string
|
|
{
|
|
return $this->vhost;
|
|
}
|
|
}
|