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 abstract class PhabricatorAuthMessageType extends Phobject { final public func..

Decoded Output download

<?php

abstract class PhabricatorAuthMessageType
  extends Phobject {

  final public function getMessageTypeKey() {
    return $this->getPhobjectClassConstant('MESSAGEKEY', 64);
  }

  final public static function getAllMessageTypes() {
    return id(new PhutilClassMapQuery())
      ->setAncestorClass(__CLASS__)
      ->setUniqueMethod('getMessageTypeKey')
      ->execute();
  }

  final public static function newFromKey($key) {
    $types = self::getAllMessageTypes();

    if (empty($types[$key])) {
      throw new Exception(
        pht(
          'No message type exists with key "%s".',
          $key));
    }

    return clone $types[$key];
  }

  abstract public function getDisplayName();
  abstract public function getShortDescription();

  public function getFullDescription() {
    return null;
  }

  public function getDefaultMessageText() {
    return null;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class PhabricatorAuthMessageType
  extends Phobject {

  final public function getMessageTypeKey() {
    return $this->getPhobjectClassConstant('MESSAGEKEY', 64);
  }

  final public static function getAllMessageTypes() {
    return id(new PhutilClassMapQuery())
      ->setAncestorClass(__CLASS__)
      ->setUniqueMethod('getMessageTypeKey')
      ->execute();
  }

  final public static function newFromKey($key) {
    $types = self::getAllMessageTypes();

    if (empty($types[$key])) {
      throw new Exception(
        pht(
          'No message type exists with key "%s".',
          $key));
    }

    return clone $types[$key];
  }

  abstract public function getDisplayName();
  abstract public function getShortDescription();

  public function getFullDescription() {
    return null;
  }

  public function getDefaultMessageText() {
    return null;
  }

}

Function Calls

None

Variables

None

Stats

MD5 584d1db2595d594f54809be5eec14eb5
Eval Count 0
Decode Time 108 ms