for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace whm\Smoke\Scanner;
use whm\Smoke\Http\Response;
class Result
{
private $type;
private $messages = array();
private $response;
private $parent;
private $url;
private $duration;
public function __construct($uri, $type, Response $response, $parent, $duration)
$this->type = $type;
$this->url = $uri;
$this->response = $response;
$this->parent = $parent;
$this->duration = $duration;
}
public function isFailure()
return $this->type === Scanner::ERROR;
public function isSuccess()
return $this->type === Scanner::PASSED;
/**
* @return array
*/
public function getMessages()
return $this->messages;
public function setMessages(array $messages)
$this->messages = $messages;
* @return mixed
public function getResponse()
return $this->response;
public function getParent()
return $this->parent;
public function getUrl()
return $this->url;
public function getDuration()
return $this->duration;