diff --git a/events_api.json b/events_api.json index 496e4a07baaa82017bb0114970c6bd58970892d5..22502d85f57849e0a7380db8409e67c5d00477de 100644 --- a/events_api.json +++ b/events_api.json @@ -112,12 +112,12 @@ "type": "string" } }, - "categoryid":{ - "description": "This is only available for review events. ID of review category where the event took place. ", + "groupid":{ + "description": "This is only available for review events. ID of review group where the event took place. ", "type": "integer" }, - "categoryname":{ - "description": "This is only available for review events. Name of review category where the event took place. ", + "groupname":{ + "description": "This is only available for review events. Name of review group where the event took place. ", "type": "string" }, "project" : { diff --git a/lib/Model/Event.php b/lib/Model/Event.php index cf160dee46df47f09c8c87b2a36947126ee1def9..09b8fac67b79e1079e043158ae61da7d696c1764 100644 --- a/lib/Model/Event.php +++ b/lib/Model/Event.php @@ -62,8 +62,8 @@ class Event implements ArrayAccess 'new_state' => 'string', 'trigger_type' => 'string', 'institutions' => 'string[]', - 'categoryid' => 'int', - 'categoryname' => 'string', + 'groupid' => 'int', + 'groupname' => 'string', 'project' => '\jards\eventsapiclient\Swagger\Client\Model\Project', 'application' => '\jards\eventsapiclient\Swagger\Client\Model\Application' ]; @@ -81,8 +81,8 @@ class Event implements ArrayAccess 'new_state' => null, 'trigger_type' => null, 'institutions' => null, - 'categoryid' => null, - 'categoryname' => null, + 'groupid' => null, + 'groupname' => null, 'project' => null, 'application' => null ]; @@ -110,8 +110,8 @@ class Event implements ArrayAccess 'new_state' => 'newState', 'trigger_type' => 'triggerType', 'institutions' => 'institutions', - 'categoryid' => 'categoryid', - 'categoryname' => 'categoryname', + 'groupid' => 'groupid', + 'groupname' => 'groupname', 'project' => 'project', 'application' => 'application' ]; @@ -130,8 +130,8 @@ class Event implements ArrayAccess 'new_state' => 'setNewState', 'trigger_type' => 'setTriggerType', 'institutions' => 'setInstitutions', - 'categoryid' => 'setCategoryid', - 'categoryname' => 'setCategoryname', + 'groupid' => 'setGroupid', + 'groupname' => 'setGroupname', 'project' => 'setProject', 'application' => 'setApplication' ]; @@ -150,8 +150,8 @@ class Event implements ArrayAccess 'new_state' => 'getNewState', 'trigger_type' => 'getTriggerType', 'institutions' => 'getInstitutions', - 'categoryid' => 'getCategoryid', - 'categoryname' => 'getCategoryname', + 'groupid' => 'getGroupid', + 'groupname' => 'getGroupname', 'project' => 'getProject', 'application' => 'getApplication' ]; @@ -195,8 +195,8 @@ class Event implements ArrayAccess $this->container['new_state'] = isset($data['new_state']) ? $data['new_state'] : null; $this->container['trigger_type'] = isset($data['trigger_type']) ? $data['trigger_type'] : null; $this->container['institutions'] = isset($data['institutions']) ? $data['institutions'] : null; - $this->container['categoryid'] = isset($data['categoryid']) ? $data['categoryid'] : null; - $this->container['categoryname'] = isset($data['categoryname']) ? $data['categoryname'] : null; + $this->container['groupid'] = isset($data['groupid']) ? $data['groupid'] : null; + $this->container['groupname'] = isset($data['groupname']) ? $data['groupname'] : null; $this->container['project'] = isset($data['project']) ? $data['project'] : null; $this->container['application'] = isset($data['application']) ? $data['application'] : null; } @@ -413,43 +413,43 @@ class Event implements ArrayAccess } /** - * Gets categoryid + * Gets groupid * @return int */ - public function getCategoryid() + public function getGroupid() { - return $this->container['categoryid']; + return $this->container['groupid']; } /** - * Sets categoryid - * @param int $categoryid This is only available for review events. ID of review category where the event took place. + * Sets groupid + * @param int $groupid This is only available for review events. ID of review group where the event took place. * @return $this */ - public function setCategoryid($categoryid) + public function setGroupid($groupid) { - $this->container['categoryid'] = $categoryid; + $this->container['groupid'] = $groupid; return $this; } /** - * Gets categoryname + * Gets groupname * @return string */ - public function getCategoryname() + public function getGroupname() { - return $this->container['categoryname']; + return $this->container['groupname']; } /** - * Sets categoryname - * @param string $categoryname This is only available for review events. Name of review category where the event took place. + * Sets groupname + * @param string $groupname This is only available for review events. Name of review group where the event took place. * @return $this */ - public function setCategoryname($categoryname) + public function setGroupname($groupname) { - $this->container['categoryname'] = $categoryname; + $this->container['groupname'] = $groupname; return $this; }