Model/Group.php
public function setRoles(array $roles)
    {
        $this->roles = [];

        foreach ($roles as $item) {
            $this->addRole($item);
        }

        return $this;
    }
public function setRoles(array $roles)
    {
        $this->roles = [];

        foreach ($roles as $item) {
            $this->addRole($item);
        }

        return $this;
    }
Sets the "roles" of the Group.

@param Role[] $roles

@return Group