Completed
Push — master ( ece95b...9e5e0a )
by Mihai
20s queued 14s
created

AMQPSSLConnection::__construct()   A

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
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 = array())
20
    {
21
        // save params for direct access in tests
22
        self::$createConnectionParams = func_get_args();
23
24
        return parent::create_connection($hosts, $options);
25
    }
26
}
27