1 | <?php |
||
24 | trait ProviderMutatorTrait |
||
25 | { |
||
26 | use ActiveRecordTrait; |
||
27 | |||
28 | /** |
||
29 | * @var Provider|null |
||
30 | */ |
||
31 | private $provider; |
||
32 | |||
33 | /** |
||
34 | * Set associated providerId |
||
35 | * |
||
36 | * @param $id |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function setProviderId(int $id) |
||
44 | |||
45 | /** |
||
46 | * Get associated providerId |
||
47 | * |
||
48 | * @return int|null |
||
49 | */ |
||
50 | public function getProviderId() |
||
60 | |||
61 | /** |
||
62 | * Associate a provider |
||
63 | * |
||
64 | * @param mixed $provider |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setProvider($provider = null) |
||
80 | |||
81 | /** |
||
82 | * @return Provider|null |
||
83 | */ |
||
84 | public function getProvider() |
||
102 | |||
103 | /** |
||
104 | * @return Provider|null |
||
105 | */ |
||
106 | protected function resolveProvider() |
||
118 | |||
119 | /** |
||
120 | * @return Provider|null |
||
121 | */ |
||
122 | private function resolveProviderFromRelation() |
||
135 | |||
136 | /** |
||
137 | * @return Provider|null |
||
138 | */ |
||
139 | private function resolveProviderFromId() |
||
147 | |||
148 | /** |
||
149 | * @param $provider |
||
150 | * @return Provider|null |
||
151 | */ |
||
152 | protected function internalResolveProvider($provider = null) |
||
178 | |||
179 | /** |
||
180 | * Returns the associated provider record. |
||
181 | * |
||
182 | * @return ActiveQueryInterface |
||
183 | */ |
||
184 | protected function getProviderRecord(): ActiveQueryInterface |
||
191 | } |
||
192 |
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..