mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 15:52:41 +01:00
48059265f3
Summary: Ref T2222. Moves this Conduit stuff over. Test Plan: Made Conduit calls, saw data in results. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2222 Differential Revision: https://secure.phabricator.com/D8469
51 lines
992 B
PHP
51 lines
992 B
PHP
<?php
|
|
|
|
abstract class DifferentialStoredCustomField
|
|
extends DifferentialCustomField {
|
|
|
|
private $value;
|
|
|
|
public function setValue($value) {
|
|
$this->value = $value;
|
|
return $this;
|
|
}
|
|
|
|
public function getValue() {
|
|
return $this->value;
|
|
}
|
|
|
|
public function shouldUseStorage() {
|
|
return true;
|
|
}
|
|
|
|
public function newStorageObject() {
|
|
return new DifferentialCustomFieldStorage();
|
|
}
|
|
|
|
protected function newStringIndexStorage() {
|
|
return new DifferentialCustomFieldStringIndex();
|
|
}
|
|
|
|
protected function newNumericIndexStorage() {
|
|
return new DifferentialCustomFieldNumericIndex();
|
|
}
|
|
|
|
public function getValueForStorage() {
|
|
return $this->value;
|
|
}
|
|
|
|
public function setValueFromStorage($value) {
|
|
$this->value = $value;
|
|
return $this;
|
|
}
|
|
|
|
public function setValueFromApplicationTransactions($value) {
|
|
$this->setValue($value);
|
|
return $this;
|
|
}
|
|
|
|
public function getConduitDictionaryValue() {
|
|
return $this->getValue();
|
|
}
|
|
|
|
}
|