public function setOp($value) { if ($value === $this->isOp()) { return; } if ($value === true) { $this->server->addOp(strtolower($this->getName())); } else { $this->server->removeOp(strtolower($this->getName())); } }