Version 1.0.0
This commit is contained in:
26
src/Object/Connection.php
Normal file
26
src/Object/Connection.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Diffhead\PHP\LaravelRabbitMQ\Object;
|
||||
|
||||
use PhpAmqpLib\Channel\AMQPChannel;
|
||||
use PhpAmqpLib\Connection\AMQPStreamConnection;
|
||||
|
||||
class Connection
|
||||
{
|
||||
public function __construct(
|
||||
private AMQPStreamConnection $connection,
|
||||
private AMQPChannel $channel
|
||||
) {}
|
||||
|
||||
public function connection(): AMQPStreamConnection
|
||||
{
|
||||
return $this->connection;
|
||||
}
|
||||
|
||||
public function channel(): AMQPChannel
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user