1 | <?php |
||
13 | final class Hydrate extends ObjectFacade |
||
14 | { |
||
15 | /** |
||
16 | * @param string $class |
||
17 | * |
||
18 | * @return Hydrate |
||
|
|||
19 | */ |
||
20 | 6 | public static function new(string $class): self |
|
24 | |||
25 | /** |
||
26 | * @param Hydrate $hydrat |
||
27 | * |
||
28 | * @return bool |
||
29 | */ |
||
30 | 4 | public function append(self $hydrat): bool |
|
34 | |||
35 | /** |
||
36 | * @param AssignableInterface $assignable |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | 6 | public function assign(AssignableInterface $assignable): bool |
|
48 | |||
49 | /** |
||
50 | * @param string $name |
||
51 | * @param mixed $value |
||
52 | * |
||
53 | * @return bool |
||
54 | */ |
||
55 | 6 | public function assignValue(string $name, $value): bool |
|
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 4 | public function getClassName(): string |
|
78 | } |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.