We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd1beb commit cb73a57Copy full SHA for cb73a57
src/Value/AbstractValue.php
@@ -28,6 +28,7 @@
28
* @author Maximilian Eul
29
*/
30
abstract class AbstractValue
31
+ implements Value
32
{
33
34
/**
src/Value/Value.php
@@ -0,0 +1,23 @@
1
+<?php
2
+namespace mle86\Value;
3
+
4
5
+/**
6
+ * The interface of all value classes,
7
+ * i.e. AbstractValue and AbstractSerializableValue.
8
+ *
9
+ * It just specifies that Value classes should have a 'value' method
10
+ * and a one-argument constructor, although those classes have another
11
+ * important requirement: being immutable. But we cannot encode that
12
+ * in an interface.
13
14
+ * @author Maximilian Eul
15
+ */
16
+interface Value {
17
18
+ public function value ();
19
20
+ public function __construct ($raw_value);
21
22
+}
23
0 commit comments