1 | <?php |
||
24 | class SeobilityBehavior extends Behavior |
||
25 | { |
||
26 | /** |
||
27 | * @var Seo[] seo data cache for owner |
||
28 | */ |
||
29 | public $_seo = []; |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | 1 | public function events() |
|
42 | |||
43 | /** |
||
44 | * Get all SEO data for model |
||
45 | * @param bool $force if `true`, force get with overwrite current SEO data |
||
46 | * @return array |
||
47 | */ |
||
48 | 1 | public function getAllSeobility($force = false) |
|
53 | |||
54 | /** |
||
55 | * Set SEO data |
||
56 | * @param string[] $values setting values |
||
57 | * @param int $condition SEO data condition for select. Condition =0 for default SEO data |
||
58 | */ |
||
59 | 1 | public function setSeobility($values, $condition = 0) |
|
67 | |||
68 | /** |
||
69 | * After save event |
||
70 | */ |
||
71 | 1 | public function afterSave() |
|
77 | |||
78 | /** |
||
79 | * After delete event |
||
80 | */ |
||
81 | 1 | public function afterDelete() |
|
86 | |||
87 | /** |
||
88 | * Delete SEO data |
||
89 | * @param int $condition delete SEO data condition |
||
90 | */ |
||
91 | 1 | public function deleteSeobility($condition = 0) |
|
98 | |||
99 | /** |
||
100 | * Get SEO data |
||
101 | * @param int $condition SEO data condition for get. Default SEO data have condition=0 |
||
102 | * @param bool $defaultIfNotFound flag that get default SEO data if not found by condition |
||
103 | * @param int $defaultCondition default SEO data condition for get. |
||
104 | * If can't get SEO data with this condition will be return empty SEO data |
||
105 | * @return \string[] |
||
106 | */ |
||
107 | 1 | public function getSeobility($condition = 0, $defaultIfNotFound = true, $defaultCondition = 0) |
|
118 | |||
119 | /** |
||
120 | * Delete all SEO data |
||
121 | */ |
||
122 | 1 | public function deleteAllSeobility() |
|
126 | } |
||
127 |
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..