You are here

class Header in Auth0 Single Sign On 8.2

Hierarchy

  • class \Auth0\SDK\API\Header\Header

Expanded class hierarchy of Header

3 files declare their use of Header
AuthorizationBearer.php in vendor/auth0/auth0-php/src/API/Header/Authorization/AuthorizationBearer.php
HeaderTest.php in vendor/auth0/auth0-php/tests/API/Header/HeaderTest.php
RequestBuilder.php in vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php

File

vendor/auth0/auth0-php/src/API/Header/Header.php, line 4

Namespace

Auth0\SDK\API\Header
View source
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";
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Header::$header protected property
Header::$value protected property
Header::get public function
Header::getHeader public function
Header::getValue public function
Header::__construct public function Header constructor. 4