Header.php in Auth0 Single Sign On 8.2
Namespace
Auth0\SDK\API\HeaderFile
vendor/auth0/auth0-php/src/API/Header/Header.phpView source
<?php
namespace Auth0\SDK\API\Header;
class Header {
/**
*
* @var string
*/
protected $header;
/**
*
* @var string
*/
protected $value;
/**
* Header constructor.
*
* @param string $header
* @param string $value
*/
public function __construct($header, $value) {
$this->header = $header;
$this->value = $value;
}
/**
*
* @return string
*/
public function getHeader() {
return $this->header;
}
/**
*
* @return string
*/
public function getValue() {
return $this->value;
}
/**
*
* @return string
*/
public function get() {
return "{$this->header}: {$this->value}\n";
}
}