1 | <?php |
||
12 | final class Hydrate extends ObjectFacade |
||
13 | { |
||
14 | /** |
||
15 | * @param string $class |
||
16 | * |
||
17 | * @return Hydrate |
||
|
|||
18 | */ |
||
19 | 6 | public static function new(string $class): self |
|
23 | |||
24 | /** |
||
25 | * @param Hydrate $hydrat |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | 4 | public function append(self $hydrat): bool |
|
33 | |||
34 | /** |
||
35 | * @param AssignableInterface $assignable |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 6 | public function assign(AssignableInterface $assignable): bool |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 4 | public function getClassName(): string |
|
55 | } |
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.