4141/**
4242 * Base implementation of a MetaModel Hybrid element.
4343 *
44- * @property string $id The id of the element.
45- * @property string $name The module name to use (if type is module).
46- * @property string $metamodel The id of the MetaModel to use.
47- * @property string $metamodel_filtering The id of the MetaModel filter setting to use.
48- * @property string $metamodel_rendersettings The id of the MetaModel render setting to use.
49- * @property bool $metamodel_sort_override The flag to override sorting.
44+ * @property string $id The id of the element.
45+ * @property string $name The module name to use (if type is module).
46+ * @property string $metamodel The id of the MetaModel to use.
47+ * @property string $metamodel_filtering The id of the MetaModel filter setting to use.
48+ * @property string $metamodel_rendersettings The id of the MetaModel render setting to use.
49+ * @property bool $metamodel_sort_override The flag to override sorting.
50+ * @property list<string> $cssID The CSS id and classes.
5051 *
5152 * @psalm-type TDatabaseResult=object{
5253 * cssID: string,
@@ -155,7 +156,7 @@ protected function getConnection()
155156 * Create a new instance.
156157 *
157158 * @param Result|TDatabaseResult $objElement The object from the database.
158- * @param string $strColumn The column the element is displayed within.
159+ * @param string $strColumn The column the element is displayed within.
159160 */
160161 public function __construct ($ objElement , $ strColumn = 'main ' )
161162 {
@@ -165,6 +166,7 @@ public function __construct($objElement, $strColumn = 'main')
165166 $ this ->arrData = \method_exists ($ objElement , 'row ' ) ? $ objElement ->row () : (array ) $ objElement ;
166167
167168 // Get CSS ID and headline from the parent element (!).
169+ /** @psalm-suppress PropertyTypeCoercion */
168170 $ this ->cssID = StringUtil::deserialize ($ objElement ->cssID , true );
169171 $ this ->typePrefix = $ objElement ->typePrefix ?? '' ;
170172 $ this ->strKey = $ objElement ->type ;
0 commit comments