for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Saxulum\HttpClient;
class History
{
/**
* @var HistoryEntry[]
*/
protected $historyEntries = array();
* @param HistoryEntry $historyEntry
* @return $this
public function addHistoryEntry(HistoryEntry $historyEntry)
$this->historyEntries[] = $historyEntry;
return $this;
}
* @return HistoryEntry[]
public function getHistoryEntries()
return $this->historyEntries;
* @return string
public function __toString()
$string = '';
foreach ($this->historyEntries as $historyEntry) {
$string .= (string) $historyEntry . HistoryEntry::SEPERATOR;
$string = substr($string, 0, strlen(HistoryEntry::SEPERATOR) * -1);
return $string;