Class

eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Mapper

class Mapper

Mapper for ObjectState and object state Group objects.

Methods

__construct(Handler $languageHandler)

Creates a new mapper.

ObjectState createObjectStateFromData(array $data)

Creates ObjectState object from provided $data.

ObjectState[] createObjectStateListFromData(array $data)

Creates ObjectState array of objects from provided $data.

Group createObjectStateGroupFromData(array $data)

Creates ObjectStateGroup object from provided $data.

Group[] createObjectStateGroupListFromData(array $data)

Creates ObjectStateGroup array of objects from provided $data.

Group createObjectStateGroupFromInputStruct(InputStruct $input)

Creates an instance of ObjectStateGroup object from provided $input struct.

ObjectState createObjectStateFromInputStruct(InputStruct $input)

Creates an instance of ObjectState object from provided $input struct.

Details

at line 33
public __construct(Handler $languageHandler)

Creates a new mapper.

Parameters

Handler $languageHandler

at line 45
public ObjectState createObjectStateFromData(array $data)

Creates ObjectState object from provided $data.

Parameters

array $data

Return Value

ObjectState

at line 81
public ObjectState[] createObjectStateListFromData(array $data)

Creates ObjectState array of objects from provided $data.

Parameters

array $data

Return Value

ObjectState[]

at line 99
public Group createObjectStateGroupFromData(array $data)

Creates ObjectStateGroup object from provided $data.

Parameters

array $data

Return Value

Group

at line 133
public Group[] createObjectStateGroupListFromData(array $data)

Creates ObjectStateGroup array of objects from provided $data.

Parameters

array $data

Return Value

Group[]

at line 151
public Group createObjectStateGroupFromInputStruct(InputStruct $input)

Creates an instance of ObjectStateGroup object from provided $input struct.

Parameters

InputStruct $input

Return Value

Group

at line 175
public ObjectState createObjectStateFromInputStruct(InputStruct $input)

Creates an instance of ObjectState object from provided $input struct.

Parameters

InputStruct $input

Return Value

ObjectState