for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* THttpHeader class file
*
* @author Fabio Bas <ctrlaltca[at]gmail[dot]com>
* @link https://github.com/pradosoft/prado
* @license https://github.com/pradosoft/prado/blob/master/LICENSE
*/
namespace Prado\Web;
* THttpHeader class
* THttpHeader is a class representing a simple HTTP header
* in the form of a Name and a textual Value.
* @since 4.3.2
class THttpHeader extends \Prado\TComponent
{
* @var THttpHeadersManager the URL manager instance
private $_manager;
* @var string Name
protected $_name;
* @var string Value
protected $_value;
* Constructor.
* @param THttpHeadersManager $manager the headers manager instance
public function __construct(THttpHeadersManager $manager)
$this->_manager = $manager;
parent::__construct();
}
* @return THttpHeadersManager the URL manager instance
public function getManager()
return $this->_manager;
* Initializes the header.
* @param \Prado\Xml\TXmlElement $config configuration for this module.
public function init($config)
$config
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function init(/** @scrutinizer ignore-unused */ $config)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
* @return string the textual name of the header.
public function getName()
return $this->_name;
* Sets the textual name of the header
* @param string $name the texttual name
public function setName($name)
$this->_name = $name;
* @return string the textual value of the header.
public function getValue()
return $this->_value;
* Sets the textual value of the header
* @param string $value the texttual value
public function setValue($value)
$this->_value = $value;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.