1 | <?php |
||
16 | final class Hydrate |
||
17 | { |
||
18 | /** |
||
19 | * @var ObjectFacade |
||
20 | */ |
||
21 | private $facade; |
||
22 | /** |
||
23 | * @var Element |
||
24 | */ |
||
25 | 9 | private $element; |
|
26 | |||
27 | 9 | /** |
|
28 | * Hydrate constructor. |
||
29 | 9 | * |
|
30 | 9 | * @param ClassMapper $mapper |
|
31 | * @param Element $element |
||
32 | */ |
||
33 | public function __construct(ClassMapper $mapper, Element $element) |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | */ |
||
48 | 5 | private static function verifyLoggerPresence() |
|
56 | |||
57 | /** |
||
58 | * @return ObjectFacade |
||
59 | */ |
||
60 | public function getFacade(): ObjectFacade |
||
68 | |||
69 | /** |
||
70 | 1 | * @return Element |
|
71 | */ |
||
72 | public function getElement(): Element |
||
76 | 5 | ||
77 | /** |
||
78 | 5 | * @return bool |
|
79 | */ |
||
80 | public function hasFacade(): bool |
||
84 | 5 | ||
85 | /** |
||
86 | 5 | * @param string $name |
|
87 | * @param $value |
||
88 | */ |
||
89 | public function assign(string $name, $value) |
||
98 | |||
99 | /** |
||
100 | * @param Hydrate $hydrate |
||
|
|||
101 | */ |
||
102 | public function append(self $hydrate) |
||
119 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.