diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c6ac179..3c471341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Get GroupTypes ([PR188](https://github.com/5pm-HDH/churchtools-api/pull/188), [PR198](https://github.com/5pm-HDH/churchtools-api/pull/198)) - Get GroupTypeRoles ([PR197](https://github.com/5pm-HDH/churchtools-api/pull/197)) - PHP coding standard ([PR193](https://github.com/5pm-HDH/churchtools-api/pull/193)) +- Added new property 'postsEnabled' to the group type model ([PR204](https://github.com/5pm-HDH/churchtools-api/pull/204)) ### Changed diff --git a/src/Models/Groups/GroupType/GroupType.php b/src/Models/Groups/GroupType/GroupType.php index ea470942..a23bffa7 100644 --- a/src/Models/Groups/GroupType/GroupType.php +++ b/src/Models/Groups/GroupType/GroupType.php @@ -19,6 +19,7 @@ class GroupType extends AbstractModel protected ?string $namePluralTranslated = null; protected ?string $nameTranslated = null; protected ?int $permissionDepth = null; + protected ?bool $postsEnabled = null; protected ?string $shorty = null; protected ?int $sortKey = null; protected ?string $description = null; @@ -110,6 +111,17 @@ public function setPermissionDepth(?int $permissionDepth): static return $this; } + public function getPostsEnabled(): ?bool + { + return $this->postsEnabled; + } + + public function setPostsEnabled(?bool $postsEnabled) + { + $this->postsEnabled = $postsEnabled; + return $this; + } + public function getShorty(): ?string { return $this->shorty;