Interface ModelIdInterface.

This interface the model id which identifies an model.

 Methods

Determine if this id, is equals to the other id.

equals(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId) : bool

Parameters

Returns

bool

Create an instance from a model.

fromModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface
Static

Create an instance from an serialized id.

fromSerialized(string $serialized) : \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface
Static

Parameters

$serialized

string

The id.

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When invalid data is encountered.

Returns

Create an instance from the passed values.

fromValues(string $dataProviderName, mixed $modelId) : \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface
Static

Parameters

$dataProviderName

string

The data provider name.

$modelId

mixed

The id.

Returns

Retrieve the data provider name.

getDataProviderName() : string

Returns

string

Retrieve the id.

getId() : mixed

Returns

mixed

Serialize the id.

getSerialized() : string

Returns

string