eZ\Publish\Core\Repository\ObjectStateService::newObjectStateCreateStruct PHP Method

newObjectStateCreateStruct() public method

Instantiates a new Object State Create Struct and sets $identifier in it.
public newObjectStateCreateStruct ( string $identifier ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateCreateStruct
$identifier string
return eZ\Publish\API\Repository\Values\ObjectState\ObjectStateCreateStruct
    public function newObjectStateCreateStruct($identifier)
    {
        $objectStateCreateStruct = new ObjectStateCreateStruct();
        $objectStateCreateStruct->identifier = $identifier;
        return $objectStateCreateStruct;
    }