You are here

abstract class CompilerInputBase in Compiler 1.0.x

A compiler input base class.

Copyright (C) 2021 Library Solutions, LLC (et al.).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Hierarchy

Expanded class hierarchy of CompilerInputBase

File

src/CompilerInputBase.php, line 15

Namespace

Drupal\compiler
View source
abstract class CompilerInputBase implements CompilerInputInterface {

  /**
   * The input value.
   *
   * @var mixed
   */
  protected $value;

  /**
   * {@inheritdoc}
   */
  public function __construct($value) {
    $this->value = $value;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
CompilerInputBase::$value protected property The input value.
CompilerInputBase::get public function Retrieve the value of this input. Overrides CompilerInputInterface::get
CompilerInputBase::__construct public function