The class ModelId implements the ModelIdInterface.
__construct(string $dataProviderName, mixed $modelId)
stringThe data provider name.
mixedThe model id.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If an invalid data provider name or model id is given. |
|---|
equals(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId)
fromModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
fromSerialized($serialized)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the id is unparsable. |
|---|
fromValues($dataProviderName, $modelId)
getDataProviderName() : string
stringgetId()
getSerialized() : string
string$dataProviderName : string
$modelId : mixed