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 PhabricatorPackagesVersionPHIDType extends PhabricatorPHIDType { c..

Decoded Output download

<?php

final class PhabricatorPackagesVersionPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'PVER';

  public function getTypeName() {
    return pht('Version');
  }

  public function newObject() {
    return new PhabricatorPackagesVersion();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorPackagesApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new PhabricatorPackagesVersionQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    foreach ($handles as $phid => $handle) {
      $version = $objects[$phid];

      $name = $version->getName();
      $uri = $version->getURI();

      $handle
        ->setName($name)
        ->setURI($uri);
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPackagesVersionPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'PVER';

  public function getTypeName() {
    return pht('Version');
  }

  public function newObject() {
    return new PhabricatorPackagesVersion();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorPackagesApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new PhabricatorPackagesVersionQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    foreach ($handles as $phid => $handle) {
      $version = $objects[$phid];

      $name = $version->getName();
      $uri = $version->getURI();

      $handle
        ->setName($name)
        ->setURI($uri);
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 f592ba8b32bdd3239cf3226f1099599c
Eval Count 0
Decode Time 118 ms