AMQPSSLConnection::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures;
4
5
use PhpAmqpLib\Connection\AMQPSSLConnection as BaseAMQPSSLConnection;
6
7
class AMQPSSLConnection extends BaseAMQPSSLConnection
0 ignored issues
show
Deprecated Code introduced by
The class PhpAmqpLib\Connection\AMQPSSLConnection has been deprecated: Use AMQPConnectionFactory with AMQPConnectionConfig::setIsSecure(true) and AMQPConnectionConfig::setSsl* methods. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

7
class AMQPSSLConnection extends /** @scrutinizer ignore-deprecated */ BaseAMQPSSLConnection
Loading history...
8
{
9
    public $constructParams;
10
11
    public static $createConnectionParams;
12
13
    public function __construct()
14
    {
15
        // save params for direct access in tests
16
        $this->constructParams = func_get_args();
17
    }
18
19
    public static function create_connection($hosts, $options = [])
20
    {
21
        // save params for direct access in tests
22
        self::$createConnectionParams = func_get_args();
23
24
        return parent::create_connection($hosts, $options);
0 ignored issues
show
Deprecated Code introduced by
The function PhpAmqpLib\Connection\Ab...on::create_connection() has been deprecated: Use AMQPConnectionFactory. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

24
        return /** @scrutinizer ignore-deprecated */ parent::create_connection($hosts, $options);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
25
    }
26
}
27