for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the hogosha-monitor package
*
* Copyright (c) 2016 Guillaume Cavana
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Feel free to edit as you please, and have fun.
* @author Guillaume Cavana <[email protected]>
*/
namespace Hogosha\Monitor\Model;
/**
class Result
{
protected $urlInfo;
protected $statusCode;
protected $responseTime;
protected $handlerError;
* Constructor.
* @param UrlInfo $urlInfo
* @param string $statusCode
* @param float $responseTime
* @param string $handlerError Get a string error from the handler
public function __construct(UrlInfo $urlInfo, $statusCode, $responseTime, $handlerError = null)
$this->urlInfo = $urlInfo;
$this->statusCode = $statusCode;
$this->responseTime = $responseTime;
$this->handlerError = $handlerError;
}
* getUrl.
* @return UrlInfo
public function getUrl()
return $this->urlInfo;
* getStatusCode.
* @return int
public function getStatusCode()
return $this->statusCode;
* getReponseTime.
* @return float
public function getReponseTime()
return $this->responseTime;
* getHandlerError.
* @return string
public function getHandlerError()
return $this->handlerError;