The abstract base class for typed data.
Classes deriving from this base class have to declare $value or override getValue() or setValue().
Expanded class hierarchy of TypedData
abstract class TypedData implements TypedDataInterface {
  /**
   * The data definition.
   *
   * @var array
   */
  protected $definition;
  /**
   * Constructs a TypedData object given its definition.
   *
   * @param array $definition
   *   The data definition.
   *
   * @see Drupal\Core\TypedData\TypedDataManager::create()
   */
  public function __construct(array $definition) {
    $this->definition = $definition;
  }
  /**
   * Implements TypedDataInterface::getType().
   */
  public function getType() {
    return $this->definition['type'];
  }
  /**
   * Implements TypedDataInterface::getDefinition().
   */
  public function getDefinition() {
    return $this->definition;
  }
  /**
   * Implements TypedDataInterface::getValue().
   */
  public function getValue() {
    return $this->value;
  }
  /**
   * Implements TypedDataInterface::setValue().
   */
  public function setValue($value) {
    $this->value = $value;
  }
  /**
   * Implements TypedDataInterface::getString().
   */
  public function getString() {
    return (string) $this
      ->getValue();
  }
}| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            TypedData:: | 
                  protected | property | The data definition. | |
| 
            TypedData:: | 
                  public | function | 
            Implements TypedDataInterface::getDefinition(). Overrides TypedDataInterface:: | 
                  |
| 
            TypedData:: | 
                  public | function | 
            Implements TypedDataInterface::getString(). Overrides TypedDataInterface:: | 
                  8 | 
| 
            TypedData:: | 
                  public | function | 
            Implements TypedDataInterface::getType(). Overrides TypedDataInterface:: | 
                  |
| 
            TypedData:: | 
                  public | function | 
            Implements TypedDataInterface::getValue(). Overrides TypedDataInterface:: | 
                  7 | 
| 
            TypedData:: | 
                  public | function | 
            Implements TypedDataInterface::setValue(). Overrides TypedDataInterface:: | 
                  13 | 
| 
            TypedData:: | 
                  public | function | Constructs a TypedData object given its definition. | 3 | 
| 
            TypedDataInterface:: | 
                  public | function | Validates the currently set data value. | 13 |