1 | <?php |
||
18 | class Questioncategory extends AbstractModel |
||
19 | { |
||
20 | /** |
||
21 | * Title. |
||
22 | * |
||
23 | * @var string |
||
24 | * @DatabaseField(type="string") |
||
25 | */ |
||
26 | protected $title; |
||
27 | |||
28 | /** |
||
29 | * Parent. |
||
30 | * |
||
31 | * @var QuestionCategory |
||
32 | * @DatabaseField(type="int", sql="int(11) DEFAULT '0' NOT NULL") |
||
33 | */ |
||
34 | protected $parent; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | protected $_languageUid = 0; |
||
40 | |||
41 | /** |
||
42 | * Set the title. |
||
43 | */ |
||
44 | public function setTitle(string $title): void |
||
45 | { |
||
46 | $this->title = $title; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the title. |
||
51 | */ |
||
52 | public function getTitle(): string |
||
53 | { |
||
54 | return $this->title; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Set the parent. |
||
59 | */ |
||
60 | public function setParent(self $parent): void |
||
61 | { |
||
62 | $this->parent = $parent; |
||
|
|||
63 | } |
||
64 | |||
65 | /** |
||
66 | * Get the parent. |
||
67 | */ |
||
68 | public function getParent(): self |
||
72 | |||
73 | /** |
||
74 | * Public getter for the languageUid. |
||
75 | */ |
||
76 | public function getLanguageUid(): int |
||
80 | } |
||
81 |
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..