| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class Check extends CheckAbstract |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var HttpService |
||
| 27 | */ |
||
| 28 | private $checker; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $host host name or IP address to check |
||
| 32 | * @param int $port Port to connect to (defaults to 80) |
||
| 33 | * @param string $path The path to retrieve (defaults to /) |
||
| 34 | * @param int $statusCode (optional) Expected status code |
||
| 35 | * @param null $content (optional) Expected substring to match against the page content |
||
| 36 | */ |
||
| 37 | 2 | public function __construct($host, $port = 80, $path = '/', $statusCode = null, $content = null) |
|
| 40 | 2 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 2 | public function check() |
|
| 50 |