for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the `tvi/monitor-bundle` project.
*
* (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Tvi\MonitorBundle\Check\rabbitmq\RabbitMQ;
use JMS\Serializer\Annotation as JMS;
use ZendDiagnostics\Check\RabbitMQ;
use Tvi\MonitorBundle\Check\CheckAbstract;
* @JMS\ExclusionPolicy("all")
* @author Vladimir Turnaev <[email protected]>
class Check extends CheckAbstract
{
* @var RabbitMQ
private $checker;
* @param string $host
* @param int $port
* @param string $user
* @param string $password
* @param string $vhost
public function __construct(
$host = 'localhost',
$port = 5672,
$user = 'guest',
$password = 'guest',
$vhost = '/')
$this->checker = new RabbitMQ($host,
$port,
$user,
$password,
$vhost);
8
12
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:
someFunctionCall( $firstArgument, $secondArgument, $thirdArgument ); // Closing parenthesis on a new line.
}
* {@inheritdoc}
public function check()
return $this->checker->check();