3 final class AlmanacInterfaceDestroyTransaction
4 extends AlmanacInterfaceTransactionType
{
6 const TRANSACTIONTYPE
= 'almanac:interface:destroy';
8 public function generateOldValue($object) {
12 public function applyExternalEffects($object, $value) {
13 id(new PhabricatorDestructionEngine())
14 ->destroyObject($object);
17 public function validateTransactions($object, array $xactions) {
21 if ($object->loadIsInUse()) {
22 $errors[] = $this->newInvalidError(
24 'You can not delete this interface because it is currently in '.
25 'use. One or more services are bound to it.'));