hasTagShort()) { if (substr($this->getTagShort(), 0, 1) == 'n') { $tagShort = substr($this->getTagShort(), 1); } else { $tagShort = 'n' . $this->getTagShort(); } } if (substr($this->getTagLong(), 0, 3) == 'no-') { $tagLong = substr($this->getTagLong(), 3); } else { $tagLong = 'no-' . $this->getTagLong(); } $name = $this->getName(); if (substr($name, 0, 3) == 'no') { $name = strtolower(substr($name, 2, 1)) . substr($name, 3); } else { $name = 'no' . strtoupper(substr($name, 0, 1)) . substr($name, 1); } $description = '[INVERSE] ' . $this->getDescription(); $reverse = new Flag($name, !$this->getDefault(), $description, $tagLong, $tagShort); $reverse->setVarName($this->getVarName()); return array($reverse); } }