public function loadObjectStates($objectStateGroupId)
    {
        $objectStateGroup = $this->objectStateService->loadObjectStateGroup($objectStateGroupId);

        return new Values\ObjectStateList(
            $this->objectStateService->loadObjectStates($objectStateGroup, Language::ALL),
            $objectStateGroup->id
        );
    }
public function loadObjectStates($objectStateGroupId)
    {
        $objectStateGroup = $this->objectStateService->loadObjectStateGroup($objectStateGroupId);

        return new Values\ObjectStateList(
            $this->objectStateService->loadObjectStates($objectStateGroup, Language::ALL),
            $objectStateGroup->id
        );
    }
public function loadObjectStates ( $ objectStateGroupId ) { $ objectStateGroup = $ this -> objectStateService -> loadObjectStateGroup ( $ objectStateGroupId ) ; return new Values \ ObjectStateList ( $ this -> objectStateService -> loadObjectStates ( $ objectStateGroup , Language :: ALL ) , $ objectStateGroup -> id ) ; }
Returns a list of all object states of the given group.

@param $objectStateGroupId

@return \eZ\Publish\Core\REST\Server\Values\ObjectStateList
Returns a list of all object states of the given group .