closeSession() public method

public closeSession ( $identifier, $reason )
Ejemplo n.º 1
0
 public function close(Player $player, $reason = "unknown reason")
 {
     if (isset($this->identifiers[$h = spl_object_hash($player)])) {
         unset($this->players[$this->identifiers[$h]]);
         unset($this->identifiersACK[$this->identifiers[$h]]);
         $this->interface->closeSession($this->identifiers[$h], $reason);
         unset($this->identifiers[$h]);
     }
 }
Ejemplo n.º 2
0
 public function close(Player $player, $reason = "unknown reason")
 {
     if (isset($this->identifiers[$player])) {
         unset($this->players[$this->identifiers[$player]]);
         unset($this->identifiersACK[$this->identifiers[$player]]);
         $this->interface->closeSession($this->identifiers[$player], $reason);
         $this->identifiers->detach($player);
     }
 }