Skip to content

Commit

Permalink
Add missing toString method to Group model
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 19, 2020
1 parent 14c96c2 commit d7e3e44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Model/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public function __construct(string $name, array $roles = [])
$this->roles = $roles;
}

public function __toString(): string
{
return $this->getName();
}

public function addRole(string $role): void
{
if (!$this->hasRole($role)) {
Expand Down

0 comments on commit d7e3e44

Please sign in to comment.