public function equals(Neuron_GameServer_Windows_Window $window) { if ($window instanceof self) { // Check the id if ($this->getChannelName() == $window->getChannelName()) { return true; } } return false; }