File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
/**
17
17
* Interface CastInterface
18
+ *
19
+ * The methods work at (1)(4) only.
20
+ * [App Code] --- (1) --> [Entity] --- (2) --> [Database]
21
+ * [App Code] <-- (4) --- [Entity] <-- (3) --- [Database]
18
22
*/
19
23
interface CastInterface
20
24
{
21
25
/**
22
- * Takes a value from Database , returns its value for PHP.
26
+ * Takes a raw value from Entity , returns its value for PHP.
23
27
*
24
28
* @param array|bool|float|int|object|string|null $value Data
25
29
* @param array $params Additional param
@@ -29,7 +33,7 @@ interface CastInterface
29
33
public static function get ($ value , array $ params = []);
30
34
31
35
/**
32
- * Takes a PHP value, returns its value for Database .
36
+ * Takes a PHP value, returns its raw value for Entity .
33
37
*
34
38
* @param array|bool|float|int|object|string|null $value Data
35
39
* @param array $params Additional param
You can’t perform that action at this time.
0 commit comments