private function upgradeProperty(PropertyValue $property, $addScheme) { $value = $property->getValue(); if ($addScheme) { $this->upgradeUrl($value); } else { $this->downgradeUrl($value); } $property->setValue($value); }