| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class Check extends CheckAbstract |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var RabbitMQClient |
||
| 29 | */ |
||
| 30 | private $client; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $host |
||
| 34 | * @param int $port |
||
| 35 | * @param string $user |
||
| 36 | * @param string $password |
||
| 37 | * @param string $vhost |
||
| 38 | * @param null|mixed $dsn |
||
| 39 | */ |
||
| 40 | 2 | public function __construct( |
|
| 41 | $host = 'localhost', |
||
| 42 | $port = 5672, |
||
| 43 | $user = 'guest', |
||
| 44 | $password = 'guest', |
||
| 45 | $vhost = '/', |
||
| 46 | $dsn = null) |
||
| 47 | { |
||
| 48 | 2 | $this->client = new RabbitMQClient($host, |
|
| 49 | 2 | $port, |
|
| 50 | 2 | $user, |
|
| 51 | 2 | $password, |
|
| 52 | 2 | $vhost, |
|
| 53 | 2 | $dsn); |
|
| 54 | 2 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | 2 | public function check() |
|
| 71 | } |
||
| 72 | } |
||
| 74 |