3 final class PhabricatorSlowvoteCloseTransaction
4 extends PhabricatorSlowvoteTransactionType
{
6 const TRANSACTIONTYPE
= 'vote:close';
8 public function generateOldValue($object) {
9 return (bool)$object->getIsClosed();
12 public function generateNewValue($object, $value) {
16 public function applyInternalEffects($object, $value) {
17 $object->setIsClosed((int)$value);
20 public function getTitle() {
21 $new = $this->getNewValue();
25 '%s closed this poll.',
26 $this->renderAuthor());
29 '%s reopened this poll.',
30 $this->renderAuthor());
34 public function getTitleForFeed() {
35 $new = $this->getNewValue();
40 $this->renderAuthor(),
41 $this->renderObject());
45 $this->renderAuthor(),
46 $this->renderObject());
50 public function getIcon() {
51 $new = $this->getNewValue();