getTransactionType()) { case NuanceItemTransaction::TYPE_REQUESTOR: return $object->getRequestorPHID(); case NuanceItemTransaction::TYPE_SOURCE: return $object->getSourcePHID(); case NuanceItemTransaction::TYPE_OWNER: return $object->getOwnerPHID(); } return parent::getCustomTransactionOldValue($object, $xaction); } protected function getCustomTransactionNewValue( PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { case NuanceItemTransaction::TYPE_REQUESTOR: case NuanceItemTransaction::TYPE_SOURCE: case NuanceItemTransaction::TYPE_OWNER: return $xaction->getNewValue(); } return parent::getCustomTransactionNewValue($object, $xaction); } protected function applyCustomInternalTransaction( PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { case NuanceItemTransaction::TYPE_REQUESTOR: $object->setRequestorPHID($xaction->getNewValue()); break; case NuanceItemTransaction::TYPE_SOURCE: $object->setSourcePHID($xaction->getNewValue()); break; case NuanceItemTransaction::TYPE_OWNER: $object->setOwnerPHID($xaction->getNewValue()); break; } } protected function applyCustomExternalTransaction( PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { case NuanceItemTransaction::TYPE_REQUESTOR: case NuanceItemTransaction::TYPE_SOURCE: case NuanceItemTransaction::TYPE_OWNER: return; } return parent::applyCustomExternalTransaction($object, $xaction); } }