for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\HttplugBundle\Collector;
use Http\Client\Common\Plugin;
use Http\Client\Exception;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
class Profile
{
/**
* @var Plugin
*/
private $plugin;
* @var RequestInterface
private $request;
* @var ResponseInterface
private $response;
* @var Exception
private $exception;
* @var bool
private $first;
* @param Plugin $plugin
* @param RequestInterface $request
public function __construct(Plugin $plugin, RequestInterface $request)
$this->plugin = $plugin;
$this->request = $request;
$this->first = false;
}
* @return Plugin
public function getPlugin()
return $this->plugin;
* @return RequestInterface
public function getRequest()
return $this->request;
* @return ResponseInterface
public function getResponse()
return $this->response;
* @param ResponseInterface $response
public function setResponse(ResponseInterface $response)
$this->response = $response;
* @return Exception
public function getException()
return $this->exception;
* @param Exception $exception
public function setException(Exception $exception)
$this->exception = $exception;
* @return bool
public function getFirst()
return $this->first;
* @param $first
public function setFirst($first)
$this->first = $first;