Skip to content

Commit 029d118

Browse files
committed
docs: fix doc comments in Entity/Cast/CastInterface
1 parent 567372e commit 029d118

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

system/Entity/Cast/CastInterface.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515

1616
/**
1717
* 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]
1822
*/
1923
interface CastInterface
2024
{
2125
/**
22-
* Takes a value from Database, returns its value for PHP.
26+
* Takes a raw value from Entity, returns its value for PHP.
2327
*
2428
* @param array|bool|float|int|object|string|null $value Data
2529
* @param array $params Additional param
@@ -29,7 +33,7 @@ interface CastInterface
2933
public static function get($value, array $params = []);
3034

3135
/**
32-
* Takes a PHP value, returns its value for Database.
36+
* Takes a PHP value, returns its raw value for Entity.
3337
*
3438
* @param array|bool|float|int|object|string|null $value Data
3539
* @param array $params Additional param

0 commit comments

Comments
 (0)