protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { case AlmanacServiceTransaction::TYPE_NAME: return $xaction->getNewValue(); } return parent::getCustomTransactionNewValue($object, $xaction); }
protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { case AlmanacBindingTransaction::TYPE_INTERFACE: return $xaction->getNewValue(); case AlmanacBindingTransaction::TYPE_DISABLE: return (int) $xaction->getNewValue(); } return parent::getCustomTransactionNewValue($object, $xaction); }