public function createObjectStateListFromData(array $data) { $objectStates = array(); foreach ($data as $objectStateData) { $objectStates[] = $this->createObjectStateFromData($objectStateData); } return $objectStates; }
/** * This method returns the ordered list of object states of a group * * @param mixed $groupId * * @return \eZ\Publish\SPI\Persistence\Content\ObjectState[] */ public function loadObjectStates($groupId) { $data = $this->objectStateGateway->loadObjectStateListData($groupId); return $this->objectStateMapper->createObjectStateListFromData($data); }