Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/xaction/PholioMockNameTransaction.php
Show All 9 Lines | final class PholioMockNameTransaction | ||||
} | } | ||||
public function getActionStrength() { | public function getActionStrength() { | ||||
return 1.4; | return 1.4; | ||||
} | } | ||||
public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
$object->setName($value); | $object->setName($value); | ||||
if ($object->getOriginalName() === null) { | |||||
$object->setOriginalName($this->getNewValue()); | |||||
} | |||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
if ($old === null) { | if ($old === null) { | ||||
return pht( | return pht( | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |