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 HarbormasterArtifact extends Phobject { private $buildArtifact; ..

Decoded Output download

<?php


abstract class HarbormasterArtifact extends Phobject {

  private $buildArtifact;

  abstract public function getArtifactTypeName();

  public function getArtifactTypeSummary() {
    return $this->getArtifactTypeDescription();
  }

  abstract public function getArtifactTypeDescription();
  abstract public function getArtifactParameterSpecification();
  abstract public function getArtifactParameterDescriptions();
  abstract public function willCreateArtifact(PhabricatorUser $actor);

  public function readArtifactHTTPParameter($key, $value) {
    return $value;
  }

  public function validateArtifactData(array $artifact_data) {
    $artifact_spec = $this->getArtifactParameterSpecification();
    PhutilTypeSpec::checkMap($artifact_data, $artifact_spec);
  }

  public function renderArtifactSummary(PhabricatorUser $viewer) {
    return null;
  }

  public function releaseArtifact(PhabricatorUser $actor) {
    return;
  }

  public function getArtifactDataExample() {
    return null;
  }

  public function setBuildArtifact(HarbormasterBuildArtifact $build_artifact) {
    $this->buildArtifact = $build_artifact;
    return $this;
  }

  public function getBuildArtifact() {
    return $this->buildArtifact;
  }

  final public function getArtifactConstant() {
    return $this->getPhobjectClassConstant('ARTIFACTCONST', 32);
  }

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

  final public static function getArtifactType($type) {
    return idx(self::getAllArtifactTypes(), $type);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php


abstract class HarbormasterArtifact extends Phobject {

  private $buildArtifact;

  abstract public function getArtifactTypeName();

  public function getArtifactTypeSummary() {
    return $this->getArtifactTypeDescription();
  }

  abstract public function getArtifactTypeDescription();
  abstract public function getArtifactParameterSpecification();
  abstract public function getArtifactParameterDescriptions();
  abstract public function willCreateArtifact(PhabricatorUser $actor);

  public function readArtifactHTTPParameter($key, $value) {
    return $value;
  }

  public function validateArtifactData(array $artifact_data) {
    $artifact_spec = $this->getArtifactParameterSpecification();
    PhutilTypeSpec::checkMap($artifact_data, $artifact_spec);
  }

  public function renderArtifactSummary(PhabricatorUser $viewer) {
    return null;
  }

  public function releaseArtifact(PhabricatorUser $actor) {
    return;
  }

  public function getArtifactDataExample() {
    return null;
  }

  public function setBuildArtifact(HarbormasterBuildArtifact $build_artifact) {
    $this->buildArtifact = $build_artifact;
    return $this;
  }

  public function getBuildArtifact() {
    return $this->buildArtifact;
  }

  final public function getArtifactConstant() {
    return $this->getPhobjectClassConstant('ARTIFACTCONST', 32);
  }

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

  final public static function getArtifactType($type) {
    return idx(self::getAllArtifactTypes(), $type);
  }

}

Function Calls

None

Variables

None

Stats

MD5 fe9a629040a950c2c9ef43f456a416ef
Eval Count 0
Decode Time 85 ms