You are here

class HttpHeaderNull in RESTful 7.2

Hierarchy

Expanded class hierarchy of HttpHeaderNull

File

src/Http/HttpHeaderNull.php, line 10
Contains \Drupal\restful\Http\HttpHeaderNull

Namespace

Drupal\restful\Http
View source
class HttpHeaderNull implements HttpHeaderInterface {

  /**
   * Header ID.
   *
   * @var string
   */
  protected $id;

  /**
   * Header name.
   *
   * @var string
   */
  protected $name;

  /**
   * Header values.
   *
   * @var array
   */
  protected $values = array();

  /**
   * Header extras.
   *
   * @var string
   */
  protected $extras;

  /**
   * Constructor.
   */
  public function __construct($name, array $values, $extras) {
  }

  /**
   * {@inheritdoc}
   */
  public static function create($key, $value) {
    return new static(NULL, array(), NULL);
  }

  /**
   * {@inheritdoc}
   */
  public function get() {
    return $this->values;
  }

  /**
   * {@inheritdoc}
   */
  public function getValueString() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function getName() {
    return NULL;
  }

  /**
   * Returns the string version of the header.
   *
   * @return string
   */
  public function __toString() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function set($values) {
  }

  /**
   * {@inheritdoc}
   */
  public function append($value) {
  }

  /**
   * {@inheritdoc}
   */
  public function getId() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public static function generateId($name) {
    return NULL;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpHeaderNull::$extras protected property Header extras.
HttpHeaderNull::$id protected property Header ID.
HttpHeaderNull::$name protected property Header name.
HttpHeaderNull::$values protected property Header values.
HttpHeaderNull::append public function Appends a value into a header. Overrides HttpHeaderInterface::append
HttpHeaderNull::create public static function Creates a header object from the key and value strings. Overrides HttpHeaderInterface::create
HttpHeaderNull::generateId public static function Generates the header ID based on the header name. Overrides HttpHeaderInterface::generateId
HttpHeaderNull::get public function Gets the values of the header. Overrides HttpHeaderInterface::get
HttpHeaderNull::getId public function Gets the header id. Overrides HttpHeaderInterface::getId
HttpHeaderNull::getName public function Gets the header name. Overrides HttpHeaderInterface::getName
HttpHeaderNull::getValueString public function Gets the contents of the header. Overrides HttpHeaderInterface::getValueString
HttpHeaderNull::set public function Sets the values. Overrides HttpHeaderInterface::set
HttpHeaderNull::__construct public function Constructor.
HttpHeaderNull::__toString public function Returns the string version of the header.