public function createForPlayers($logins)
    {
        $class = $this->class;
        /** @var Group $group */
        $group = new $class(null, $this->dispatcher);

        $this->groups[$group->getName()] = $group;
        foreach ($logins as $login) {
            $group->addLogin($login);
        }

        return $group;
    }
public function createForPlayers($logins)
    {
        $class = $this->class;
        /** @var Group $group */
        $group = new $class(null, $this->dispatcher);

        $this->groups[$group->getName()] = $group;
        foreach ($logins as $login) {
            $group->addLogin($login);
        }

        return $group;
    }
public function createForPlayers ( $ logins ) { $ class = $ this -> class ; /** @var Group $group */ $ group = new $ class ( null , $ this -> dispatcher ) ; $ this -> groups [ $ group -> getName ( ) ] = $ group ; foreach ( $ logins as $ login ) { $ group -> addLogin ( $ login ) ; } return $ group ; }
Create a group for array of logins.

@param string[] $logins

@return Group
Create a group for array of logins .