Connection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
/**
3
 * This file is part of order_management
4
 * User: Sinan TURGUT <[email protected]>
5
 * Date: 24.06.2019
6
 * php version 7.2
7
 *
8
 * @category Assessment
9
 * @package  OrderManagement
10
 * @author   Sinan TURGUT <[email protected]>
11
 * @license  See LICENSE file
12
 * @link     https://dev.sinanturgut.com.tr
13
 */
14
15
namespace OrderManagement\RabbitMQ;
16
17
use PhpAmqpLib\Connection\AMQPStreamConnection;
0 ignored issues
show
Bug introduced by
The type PhpAmqpLib\Connection\AMQPStreamConnection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
19
/**
20
 * Class Connection
21
 * @package OrderManagement\RabbitMQ
22
 */
23
class Connection extends AMQPStreamConnection
24
{
25
    /**
26
     * Connection constructor.
27
     */
28
    public function __construct()
29
    {
30
        parent::__construct(
31
            getenv('RABBITMQ_URL'),
32
            getenv('RABBITMQ_PORT'),
33
            getenv('RABBITMQ_DEFAULT_USER'),
34
            getenv('RABBITMQ_DEFAULT_PASS')
35
        );
36
    }
37
}
38