Skip to content

Commit a3f0a62

Browse files
committed
Introduce IItem::getVariantBase()
1 parent 4294865 commit a3f0a62

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/MetaModels/IItem.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ public function isVariantBase();
111111
*/
112112
public function getVariants($objFilter);
113113

114+
/**
115+
* Fetch the meta model variant base for this item. For a non-variant item the variant base is the item itself.
116+
*
117+
* @return \MetaModels\IItem The variant base.
118+
*/
119+
public function getVariantBase();
120+
114121
/**
115122
* Save the current data for every attribute to the data sink.
116123
*

src/MetaModels/Item.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,16 @@ public function getVariants($objFilter)
294294
return null;
295295
}
296296

297+
/**
298+
* Fetch the meta model variant base for this item. For a non-variant item the variant base is the item itself.
299+
*
300+
* @return \MetaModels\IItem The variant base.
301+
*/
302+
public function getVariantBase()
303+
{
304+
// TODO: Implement getVariantBase() method.
305+
}
306+
297307
/**
298308
* Find all Variants including the variant base.
299309
*

0 commit comments

Comments
 (0)