public function createForPlayer($login)
    {
        if (!isset($this->groups[$login])) {
            $class = $this->class;
            /** @var Group $group */
            $group = new $class(null, $this->dispatcher);

            $this->groups[$login] = $group;
            $group->addLogin($login);
        }

        return $this->groups[$login];
    }
public function createForPlayer($login)
    {
        if (!isset($this->groups[$login])) {
            $class = $this->class;
            /** @var Group $group */
            $group = new $class(null, $this->dispatcher);

            $this->groups[$login] = $group;
            $group->addLogin($login);
        }

        return $this->groups[$login];
    }
public function createForPlayer ( $ login ) { if ( ! isset ( $ this -> groups [ $ login ] ) ) { $ class = $ this -> class ; /** @var Group $group */ $ group = new $ class ( null , $ this -> dispatcher ) ; $ this -> groups [ $ login ] = $ group ; $ group -> addLogin ( $ login ) ; } return $ this -> groups [ $ login ] ; }
Get the individual group of a single player.

@param string $login

@return Group
Get the individual group of a single player .