/**
* Updates an object state group
*
* @param mixed $groupId
* @param \eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input
*
* @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group
*/
public function updateGroup($groupId, InputStruct $input)
{
$objectStateGroup = $this->objectStateMapper->createObjectStateGroupFromInputStruct($input);
$objectStateGroup->id = (int) $groupId;
$this->objectStateGateway->updateObjectStateGroup($objectStateGroup);
return $this->loadGroup($objectStateGroup->id);
}