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 HeraldPholioMockAdapter extends HeraldAdapter { private $mock; pu..
Decoded Output download
<?php
final class HeraldPholioMockAdapter extends HeraldAdapter {
private $mock;
public function getAdapterApplicationClass() {
return 'PhabricatorPholioApplication';
}
public function getAdapterContentDescription() {
return pht('React to mocks being created or updated.');
}
protected function initializeNewAdapter() {
$this->mock = $this->newObject();
}
protected function newObject() {
return new PholioMock();
}
public function isTestAdapterForObject($object) {
return ($object instanceof PholioMock);
}
public function getAdapterTestDescription() {
return pht(
'Test rules which run when a mock is created or updated.');
}
public function setObject($object) {
$this->mock = $object;
return $this;
}
public function getObject() {
return $this->mock;
}
public function setMock(PholioMock $mock) {
$this->mock = $mock;
return $this;
}
public function getMock() {
return $this->mock;
}
public function getAdapterContentName() {
return pht('Pholio Mocks');
}
public function supportsRuleType($rule_type) {
switch ($rule_type) {
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL:
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL:
return true;
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT:
default:
return false;
}
}
public function getHeraldName() {
return 'M'.$this->getMock()->getID();
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class HeraldPholioMockAdapter extends HeraldAdapter {
private $mock;
public function getAdapterApplicationClass() {
return 'PhabricatorPholioApplication';
}
public function getAdapterContentDescription() {
return pht('React to mocks being created or updated.');
}
protected function initializeNewAdapter() {
$this->mock = $this->newObject();
}
protected function newObject() {
return new PholioMock();
}
public function isTestAdapterForObject($object) {
return ($object instanceof PholioMock);
}
public function getAdapterTestDescription() {
return pht(
'Test rules which run when a mock is created or updated.');
}
public function setObject($object) {
$this->mock = $object;
return $this;
}
public function getObject() {
return $this->mock;
}
public function setMock(PholioMock $mock) {
$this->mock = $mock;
return $this;
}
public function getMock() {
return $this->mock;
}
public function getAdapterContentName() {
return pht('Pholio Mocks');
}
public function supportsRuleType($rule_type) {
switch ($rule_type) {
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL:
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL:
return true;
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT:
default:
return false;
}
}
public function getHeraldName() {
return 'M'.$this->getMock()->getID();
}
}
Function Calls
None |
Stats
MD5 | 7247e0cde8559f90e7658563adf976ea |
Eval Count | 0 |
Decode Time | 93 ms |