3 final class AlmanacBindingDisableTransaction
4 extends AlmanacBindingTransactionType
{
6 const TRANSACTIONTYPE
= 'almanac:binding:disable';
8 public function generateOldValue($object) {
9 return (bool)$object->getIsDisabled();
12 public function applyInternalEffects($object, $value) {
13 $object->setIsDisabled((int)$value);
16 public function getTitle() {
17 if ($this->getNewValue()) {
19 '%s disabled this binding.',
20 $this->renderAuthor());
23 '%s enabled this binding.',
24 $this->renderAuthor());