Skip to content

Commit

Permalink
Merge pull request #204 from stollr/add_postsEnabled
Browse files Browse the repository at this point in the history
Added new property 'postsEnabled' to the group type model
  • Loading branch information
DumbergerL authored Feb 20, 2024
2 parents fef2c19 + 2bf9d7f commit 8cb4b81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions src/Models/Groups/GroupType/GroupType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8cb4b81

Please sign in to comment.