Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php final class PassphraseCredentialLockTransaction extends PassphraseCredentialTrans..

Decoded Output download

<?php

final class PassphraseCredentialLockTransaction
  extends PassphraseCredentialTransactionType {

  const TRANSACTIONTYPE = 'passphrase:lock';

  public function generateOldValue($object) {
    return $object->getIsLocked();
  }

  public function applyInternalEffects($object, $value) {
    $object->setIsLocked((int)$value);
  }

  public function shouldHide() {
    $new = $this->getNewValue();
    if ($new === null) {
      return true;
    }
    return false;
  }

  public function getTitle() {
    return pht(
      '%s locked this credential.',
      $this->renderAuthor());
  }

  public function getTitleForFeed() {
    return pht(
      '%s locked credential %s.',
      $this->renderAuthor(),
      $this->renderObject());
  }

  public function getIcon() {
    return 'fa-lock';
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PassphraseCredentialLockTransaction
  extends PassphraseCredentialTransactionType {

  const TRANSACTIONTYPE = 'passphrase:lock';

  public function generateOldValue($object) {
    return $object->getIsLocked();
  }

  public function applyInternalEffects($object, $value) {
    $object->setIsLocked((int)$value);
  }

  public function shouldHide() {
    $new = $this->getNewValue();
    if ($new === null) {
      return true;
    }
    return false;
  }

  public function getTitle() {
    return pht(
      '%s locked this credential.',
      $this->renderAuthor());
  }

  public function getTitleForFeed() {
    return pht(
      '%s locked credential %s.',
      $this->renderAuthor(),
      $this->renderObject());
  }

  public function getIcon() {
    return 'fa-lock';
  }

}

Function Calls

None

Variables

None

Stats

MD5 928d8bf746638131a65c199a7d233251
Eval Count 0
Decode Time 102 ms