| 1 | <?php |
||
| 21 | trait SiteMutator |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var SiteModel|null |
||
| 25 | */ |
||
| 26 | private $site; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Set associated siteId |
||
| 30 | * |
||
| 31 | * @param $id |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setSiteId(int $id) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get associated siteId |
||
| 42 | * |
||
| 43 | * @return int|null |
||
| 44 | */ |
||
| 45 | public function getSiteId() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Associate a site |
||
| 56 | * |
||
| 57 | * @param mixed $site |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function setSite($site = null) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return SiteModel|null |
||
| 77 | */ |
||
| 78 | public function getSite() |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return SiteModel|null |
||
| 99 | */ |
||
| 100 | protected function resolveSite() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return SiteModel|null |
||
| 111 | */ |
||
| 112 | private function resolveSiteFromId() |
||
| 120 | } |
||
| 121 |
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..