You are here

Header.php in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/src/API/Header/Header.php
View 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";
  }

}

Classes

Namesort descending Description
Header