Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / TypedData / PrimitiveInterface.php
1 <?php
2
3 namespace Drupal\Core\TypedData;
4
5 /**
6  * Interface for primitive data.
7  *
8  * @ingroup typed_data
9  */
10 interface PrimitiveInterface {
11
12   /**
13    * Gets the primitive data value.
14    *
15    * @return mixed
16    */
17   public function getValue();
18
19   /**
20    * Sets the primitive data value.
21    *
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.
25    */
26   public function setValue($value);
27
28   /**
29    * Gets the primitive data value casted to the correct PHP type.
30    *
31    * @return mixed
32    */
33   public function getCastedValue();
34
35 }