You are here

RadioactivityInterface.php in Radioactivity 4.0.x

File

src/RadioactivityInterface.php
View source
<?php

namespace Drupal\radioactivity;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Provides an interface defining a radioactivity entity type.
 */
interface RadioactivityInterface extends ContentEntityInterface {

  /**
   * Returns the language code.
   *
   * @return string
   *   The language code.
   */
  public function getLangcode();

  /**
   * Sets the language code.
   *
   * @param string $langcode
   *   The language code.
   */
  public function setLangcode($langcode);

  /**
   * Returns the timestamp value.
   *
   * @return int
   *   The timestamp value.
   */
  public function getTimestamp();

  /**
   * Sets the timestamp value.
   *
   * @param int $timestamp
   *   The timestamp value.
   */
  public function setTimestamp($timestamp);

  /**
   * Returns the energy value.
   *
   * @return float
   *   The energy value.
   */
  public function getEnergy();

  /**
   * Sets the energy value.
   *
   * @param float $value
   *   The energy value.
   */
  public function setEnergy($value);

}

Interfaces

Namesort descending Description
RadioactivityInterface Provides an interface defining a radioactivity entity type.