public function setWhitelisted($value) { if ($value === true) { $this->server->addWhitelist(strtolower($this->getName())); } else { $this->server->removeWhitelist(strtolower($this->getName())); } }