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

buildDomainObjectStateGroupObject() protected method

Converts the object state group SPI value object to API value object.
protected buildDomainObjectStateGroupObject ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $spiObjectStateGroup ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
$spiObjectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group
return eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
    protected function buildDomainObjectStateGroupObject(SPIObjectStateGroup $spiObjectStateGroup)
    {
        return new ObjectStateGroup(array('id' => $spiObjectStateGroup->id, 'identifier' => $spiObjectStateGroup->identifier, 'defaultLanguageCode' => $spiObjectStateGroup->defaultLanguage, 'languageCodes' => $spiObjectStateGroup->languageCodes, 'names' => $spiObjectStateGroup->name, 'descriptions' => $spiObjectStateGroup->description));
    }