3 namespace Drupal\Core\TypedData;
6 * Interface for primitive data.
10 interface PrimitiveInterface {
13 * Gets the primitive data value.
17 public function getValue();
20 * Sets the primitive data value.
22 * @param mixed|null $value
23 * The value to set in the format as documented for the data type or NULL to
24 * unset the data value.
26 public function setValue($value);
29 * Gets the primitive data value casted to the correct PHP type.
33 public function getCastedValue();