The class ModelId implements the ModelIdInterface.
__construct(string $dataProviderName, mixed $modelId)
string
The data provider name.
mixed
The 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
string
getId()
getSerialized() : string
string
$dataProviderName : string
$modelId : mixed