You are here

class CacheFragment in RESTful 7.2

Hierarchy

  • class \Drupal\restful\RenderCache\Entity\CacheFragment extends \Drupal\restful\RenderCache\Entity\Entity

Expanded class hierarchy of CacheFragment

1 file declares its use of CacheFragment
Formatter.php in src/Plugin/formatter/Formatter.php
Contains \Drupal\restful\Plugin\formatter\Formatter

File

src/RenderCache/Entity/CacheFragment.php, line 10
Contains \Drupal\restful\RenderCache\Entity\CacheFragment.

Namespace

Drupal\restful\RenderCache\Entity
View source
class CacheFragment extends \Entity {

  /**
   * The identifier hash for the tag.
   *
   * @var string
   */
  public $hash;

  /**
   * Tag type.
   *
   * @var string
   */
  public $type;

  /**
   * Tag value.
   *
   * @var string
   */
  public $value;

  /**
   * The hash to be used as the cache ID.
   *
   * @return string
   *   The hash.
   */
  public function getHash() {
    return $this->hash;
  }

  /**
   * The hash to be used as the cache ID.
   *
   * @param string $hash
   *   The hash.
   */
  public function setHash($hash) {
    $this->hash = $hash;
  }

  /**
   * Get the type.
   *
   * @return string
   *   The type.
   */
  public function getType() {
    return $this->type;
  }

  /**
   * Set the type.
   *
   * @param string $type
   *   The type.
   */
  public function setType($type) {
    $this->type = $type;
  }

  /**
   * Get the value.
   *
   * @return string
   *   The value.
   */
  public function getValue() {
    return $this->value;
  }

  /**
   * Set the value.
   *
   * @param string $value
   *   The value.
   */
  public function setValue($value) {
    $this->value = $value;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheFragment::$hash public property The identifier hash for the tag.
CacheFragment::$type public property Tag type.
CacheFragment::$value public property Tag value.
CacheFragment::getHash public function The hash to be used as the cache ID.
CacheFragment::getType public function Get the type.
CacheFragment::getValue public function Get the value.
CacheFragment::setHash public function The hash to be used as the cache ID.
CacheFragment::setType public function Set the type.
CacheFragment::setValue public function Set the value.