| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class Logger implements ChannelInterface |
||
| 10 | { |
||
| 11 | private $channel; |
||
| 12 | private $basic; |
||
| 13 | |||
| 14 | 4 | public function __construct( |
|
| 15 | ChannelInterface $channel, |
||
| 16 | LoggerInterface $logger |
||
| 17 | ) { |
||
| 18 | 4 | $this->channel = $channel; |
|
| 19 | 4 | $this->basic = new Basic\Logger( |
|
| 20 | 4 | $channel->basic(), |
|
| 21 | 2 | $logger |
|
| 22 | ); |
||
| 23 | 4 | } |
|
| 24 | |||
| 25 | 2 | public function exchange(): Exchange |
|
| 26 | { |
||
| 27 | 2 | return $this->channel->exchange(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | public function queue(): Queue |
|
| 33 | } |
||
| 34 | |||
| 35 | 2 | public function basic(): Basic |
|
| 36 | { |
||
| 37 | 2 | return $this->basic; |
|
| 38 | } |
||
| 39 | |||
| 40 | 2 | public function transaction(): Transaction |
|
| 41 | { |
||
| 42 | 2 | return $this->channel->transaction(); |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | public function closed(): bool |
|
| 46 | { |
||
| 47 | 2 | return $this->channel->closed(); |
|
| 48 | } |
||
| 49 | |||
| 50 | 2 | public function close(): void |
|
| 53 | 2 | } |
|
| 54 | } |
||
| 55 |