Changeset View
Changeset View
Standalone View
Standalone View
src/config/option/ArcanistSingleSourceConfigOption.php
- This file was moved from src/config/option/ArcanistScalarConfigOption.php.
<?php | <?php | ||||
abstract class ArcanistScalarConfigOption | abstract class ArcanistSingleSourceConfigOption | ||||
extends ArcanistConfigOption { | extends ArcanistConfigOption { | ||||
public function getValueFromStorageValueList(array $list) { | public function getValueFromStorageValueList(array $list) { | ||||
assert_instances_of($list, 'ArcanistConfigurationSourceValue'); | assert_instances_of($list, 'ArcanistConfigurationSourceValue'); | ||||
$source_value = last($list); | $source_value = last($list); | ||||
$storage_value = $this->getStorageValueFromSourceValue($source_value); | $storage_value = $this->getStorageValueFromSourceValue($source_value); | ||||
return $this->getValueFromStorageValue($storage_value); | return $this->getValueFromStorageValue($storage_value); | ||||
} | } | ||||
public function getValueFromStorageValue($value) { | public function getValueFromStorageValue($value) { | ||||
return $value; | return $value; | ||||
} | } | ||||
} | } |