1 | <?php |
||
22 | trait OrganizationMutatorTrait |
||
23 | { |
||
24 | /** |
||
25 | * @var Organization|null |
||
26 | */ |
||
27 | private $organization; |
||
28 | |||
29 | /** |
||
30 | * Set associated organizationId |
||
31 | * |
||
32 | * @param $id |
||
33 | * @return $this |
||
34 | */ |
||
35 | public function setOrganizationId(int $id) |
||
40 | |||
41 | /** |
||
42 | * Get associated organizationId |
||
43 | * |
||
44 | * @return int|null |
||
45 | */ |
||
46 | public function getOrganizationId() |
||
54 | |||
55 | /** |
||
56 | * AssociateUserToOrganization a organization |
||
57 | * |
||
58 | * @param mixed $organization |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function setOrganization($organization = null) |
||
74 | |||
75 | /** |
||
76 | * @return Organization|null |
||
77 | */ |
||
78 | public function getOrganization() |
||
96 | |||
97 | /** |
||
98 | * @return Organization|null |
||
99 | */ |
||
100 | protected function resolveOrganization() |
||
108 | |||
109 | /** |
||
110 | * @return Organization|null |
||
111 | */ |
||
112 | private function resolveOrganizationFromId() |
||
120 | |||
121 | /** |
||
122 | * @param $organization |
||
123 | * @return Organization|null |
||
124 | */ |
||
125 | protected function internalResolveOrganization($organization = null) |
||
152 | } |
||
153 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..