for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FMUP\Response;
abstract class Header
{
/**
* @var string
*/
protected $value;
* Define value to use
* @param string $value
* @return $this
public function setValue($value)
$this->value = (string)$value;
return $this;
}
* Retrieve defined value
* @return string
public function getValue()
return (string)$this->value;
* Type for the header. Can be used to determine header to send
abstract public function getType();
* Displays the header
public function render()
$this->header($this->getType() . ': ' . $this->getValue());
* @codeCoverageIgnore
protected function header($value)
__construct()
header($value);