CompilerInputBase.php in Compiler 1.0.x
Namespace
Drupal\compilerFile
src/CompilerInputBase.phpView source
<?php
namespace Drupal\compiler;
/**
* 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.
*/
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;
}
}
Classes
Name | Description |
---|---|
CompilerInputBase | A compiler input base class. |