for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ocsp;
/**
* List of responses received from the OCSP Responder.
*/
class ResponseList
{
* @var \Ocsp\Response[]
private $responses = [];
* Create a new instance.
*
* @param \Ocsp\Response[] $responses
* @return static
public static function create(array $responses = [])
$result = new static();
return $result->addResponses($responses);
}
* Add a new response to this list.
* @param \Ocsp\Response $response
* @return $this
public function addResponse(Response $response)
$this->responses[] = $response;
return $this;
* Add new responses to this list.
public function addResponses(array $responses)
foreach ($responses as $response) {
$this->addResponse($response);
* Get the response list.
* @return \Ocsp\Response[]
public function getResponses()
return $this->responses;