public function extractRoles(GroupMembershipInterface $membership)
    {
        $roles = [];
        foreach ($membership->getRoles() as $role) {
            $roles[] = new Role($role);
        }
        return $roles;
    }
public function extractRoles(GroupMembershipInterface $membership)
    {
        $roles = [];
        foreach ($membership->getRoles() as $role) {
            $roles[] = new Role($role);
        }
        return $roles;
    }
public function extractRoles ( GroupMembershipInterface $ membership ) { $ roles = [ ] ; foreach ( $ membership -> getRoles ( ) as $ role ) { $ roles [ ] = new Role ( $ role ) ; } return $ roles ; }
Returns the roles for this membership.
Returns the roles for this membership .