3 final class PhabricatorAuthPasswordRevokeTransaction
4 extends PhabricatorAuthPasswordTransactionType
{
6 const TRANSACTIONTYPE
= 'password.revoke';
8 public function generateOldValue($object) {
9 return (bool)$object->getIsRevoked();
12 public function generateNewValue($object, $value) {
16 public function applyInternalEffects($object, $value) {
17 $object->setIsRevoked((int)$value);
20 public function getTitle() {
21 if ($this->getNewValue()) {
23 '%s revoked this password.',
24 $this->renderAuthor());
27 '%s removed this password from the revocation list.',
28 $this->renderAuthor());