public function setHandler(Handler $handler) { $handler->setServer($this); $this->handler = $handler; }