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 PhabricatorGuidanceEngineExtension extends Phobject { final pub..

Decoded Output download

<?php

abstract class PhabricatorGuidanceEngineExtension
  extends Phobject {

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

  abstract public function canGenerateGuidance(
    PhabricatorGuidanceContext $context);

  abstract public function generateGuidance(
    PhabricatorGuidanceContext $context);

  public function didGenerateGuidance(
    PhabricatorGuidanceContext $context,
    array $guidance) {
    return $guidance;
  }

  final protected function newGuidance($key) {
    return id(new PhabricatorGuidanceMessage())
      ->setKey($key);
  }

  final protected function newWarning($key) {
    return $this->newGuidance($key)
      ->setSeverity(PhabricatorGuidanceMessage::SEVERITY_WARNING);
  }

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class PhabricatorGuidanceEngineExtension
  extends Phobject {

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

  abstract public function canGenerateGuidance(
    PhabricatorGuidanceContext $context);

  abstract public function generateGuidance(
    PhabricatorGuidanceContext $context);

  public function didGenerateGuidance(
    PhabricatorGuidanceContext $context,
    array $guidance) {
    return $guidance;
  }

  final protected function newGuidance($key) {
    return id(new PhabricatorGuidanceMessage())
      ->setKey($key);
  }

  final protected function newWarning($key) {
    return $this->newGuidance($key)
      ->setSeverity(PhabricatorGuidanceMessage::SEVERITY_WARNING);
  }

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

}

Function Calls

None

Variables

None

Stats

MD5 6b78590fb596ad58070ae9a62e5940f0
Eval Count 0
Decode Time 105 ms