protected function buildDomainObjectStateGroupObject(
        SPIObjectStateGroup $spiObjectStateGroup,
        array $prioritizedLanguages = []
    ) {
        return new ObjectStateGroup(
            [
                'id' => $spiObjectStateGroup->id,
                'identifier' => $spiObjectStateGroup->identifier,
                'mainLanguageCode' => $spiObjectStateGroup->defaultLanguage,
                'languageCodes' => $spiObjectStateGroup->languageCodes,
                'names' => $spiObjectStateGroup->name,
                'descriptions' => $spiObjectStateGroup->description,
                'prioritizedLanguages' => $prioritizedLanguages,
            ]
        );
    }
protected function buildDomainObjectStateGroupObject(
        SPIObjectStateGroup $spiObjectStateGroup,
        array $prioritizedLanguages = []
    ) {
        return new ObjectStateGroup(
            [
                'id' => $spiObjectStateGroup->id,
                'identifier' => $spiObjectStateGroup->identifier,
                'mainLanguageCode' => $spiObjectStateGroup->defaultLanguage,
                'languageCodes' => $spiObjectStateGroup->languageCodes,
                'names' => $spiObjectStateGroup->name,
                'descriptions' => $spiObjectStateGroup->description,
                'prioritizedLanguages' => $prioritizedLanguages,
            ]
        );
    }
protected function buildDomainObjectStateGroupObject ( SPIObjectStateGroup $ spiObjectStateGroup , array $ prioritizedLanguages = [ ] ) { return new ObjectStateGroup ( [ 'id' => $ spiObjectStateGroup -> id , 'identifier' => $ spiObjectStateGroup -> identifier , 'mainLanguageCode' => $ spiObjectStateGroup -> defaultLanguage , 'languageCodes' => $ spiObjectStateGroup -> languageCodes , 'names' => $ spiObjectStateGroup -> name , 'descriptions' => $ spiObjectStateGroup -> description , 'prioritizedLanguages' => $ prioritizedLanguages , ] ) ; }
Converts the object state group SPI value object to API value object.

@param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group $spiObjectStateGroup
@param array $prioritizedLanguages

@return \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
Converts the object state group SPI value object to API value object .