Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / repository / xaction / PhabricatorRepositoryPushPolicyTransaction.php
blob1bd8ce9e4748b75d457637591ee01c55c35834d8
1 <?php
3 final class PhabricatorRepositoryPushPolicyTransaction
4 extends PhabricatorRepositoryTransactionType {
6 const TRANSACTIONTYPE = 'repo:push-policy';
8 public function generateOldValue($object) {
9 return $object->getPushPolicy();
12 public function applyInternalEffects($object, $value) {
13 $object->setPushPolicy($value);
16 public function getTitle() {
17 return pht(
18 '%s changed the push policy of this repository from %s to %s.',
19 $this->renderAuthor(),
20 $this->renderOldPolicy(),
21 $this->renderNewPolicy());