public function getTitle()
 {
     $author_phid = $this->getAuthorPHID();
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
             if ($old === null) {
                 return pht('%s created this device.', $this->renderHandleLink($author_phid));
             } else {
                 return pht('%s renamed this device from "%s" to "%s".', $this->renderHandleLink($author_phid), $old, $new);
             }
             break;
         case self::TYPE_INTERFACE:
             if ($old && $new) {
                 return pht('%s changed interface %s on this device to %s.', $this->renderHandleLink($author_phid), $this->describeInterface($old), $this->describeInterface($new));
             } else {
                 if ($old) {
                     return pht('%s removed the interface %s from this device.', $this->renderHandleLink($author_phid), $this->describeInterface($old));
                 } else {
                     if ($new) {
                         return pht('%s added the interface %s to this device.', $this->renderHandleLink($author_phid), $this->describeInterface($new));
                     }
                 }
             }
     }
     return parent::getTitle();
 }
 public function getTitle()
 {
     $author_phid = $this->getAuthorPHID();
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
             if ($old === null) {
                 return pht('%s created this service.', $this->renderHandleLink($author_phid));
             } else {
                 return pht('%s renamed this service from "%s" to "%s".', $this->renderHandleLink($author_phid), $old, $new);
             }
             break;
         case self::TYPE_LOCK:
             if ($new) {
                 return pht('%s locked this service.', $this->renderHandleLink($author_phid));
             } else {
                 return pht('%s unlocked this service.', $this->renderHandleLink($author_phid));
             }
             break;
     }
     return parent::getTitle();
 }