for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Jairo Rodríguez <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BFunky\HttpParser\Entity;
class HttpField
{
* @var string
protected $name;
protected $value;
* HttpHeaderField constructor.
* @param string $name
* @param string $value
public function __construct(string $name, string $value)
$this->name = $name;
$this->value = $value;
}
* @return string
public function getName(): string
return $this->name;
* @return HttpField
public function setName(string $name): HttpField
return $this;
public function getValue(): string
return $this->value;
public function setValue(string $value): HttpField
* @param string $key
public static function fromKeyAndValue(string $key, string $value): self
return new self($key, $value);