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 DrydockRepositoryOperationType extends Phobject { private $viewer..

Decoded Output download

<?php

abstract class DrydockRepositoryOperationType extends Phobject {

  private $viewer;
  private $operation;
  private $interface;

  abstract public function applyOperation(
    DrydockRepositoryOperation $operation,
    DrydockInterface $interface);

  abstract public function getOperationDescription(
    DrydockRepositoryOperation $operation,
    PhabricatorUser $viewer);

  abstract public function getOperationCurrentStatus(
    DrydockRepositoryOperation $operation,
    PhabricatorUser $viewer);

  public function getWorkingCopyMerges(DrydockRepositoryOperation $operation) {
    return array();
  }

  final public function setViewer(PhabricatorUser $viewer) {
    $this->viewer = $viewer;
    return $this;
  }

  final public function getViewer() {
    return $this->viewer;
  }

  final public function setOperation(DrydockRepositoryOperation $operation) {
    $this->operation = $operation;
    return $this;
  }

  final public function getOperation() {
    return $this->operation;
  }

  final public function setInterface(DrydockInterface $interface) {
    $this->interface = $interface;
    return $this;
  }

  final public function getInterface() {
    if (!$this->interface) {
      throw new PhutilInvalidStateException('setInterface');
    }
    return $this->interface;
  }

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class DrydockRepositoryOperationType extends Phobject {

  private $viewer;
  private $operation;
  private $interface;

  abstract public function applyOperation(
    DrydockRepositoryOperation $operation,
    DrydockInterface $interface);

  abstract public function getOperationDescription(
    DrydockRepositoryOperation $operation,
    PhabricatorUser $viewer);

  abstract public function getOperationCurrentStatus(
    DrydockRepositoryOperation $operation,
    PhabricatorUser $viewer);

  public function getWorkingCopyMerges(DrydockRepositoryOperation $operation) {
    return array();
  }

  final public function setViewer(PhabricatorUser $viewer) {
    $this->viewer = $viewer;
    return $this;
  }

  final public function getViewer() {
    return $this->viewer;
  }

  final public function setOperation(DrydockRepositoryOperation $operation) {
    $this->operation = $operation;
    return $this;
  }

  final public function getOperation() {
    return $this->operation;
  }

  final public function setInterface(DrydockInterface $interface) {
    $this->interface = $interface;
    return $this;
  }

  final public function getInterface() {
    if (!$this->interface) {
      throw new PhutilInvalidStateException('setInterface');
    }
    return $this->interface;
  }

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

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

}

Function Calls

None

Variables

None

Stats

MD5 c44e1bd968a7cfb4fbd3b6474b23b5df
Eval Count 0
Decode Time 88 ms