diff --git a/src/Model/Group.php b/src/Model/Group.php index 22aa2834..d0887850 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -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)) {