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 namespace Drupal\Core\Installer\Exception; use Drupal\Core\StringTranslation\Strin..
Decoded Output download
<?php
namespace Drupal\Core\Installer\Exception;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Base class for exceptions thrown by installer.
*/
class InstallerException extends \RuntimeException {
use StringTranslationTrait;
/**
* The page title to output.
*
* @var string
*/
protected $title;
/**
* Constructs a new installer exception.
*
* @param string $title
* The page title.
* @param string $message
* (optional) The exception message. Defaults to 'Error'.
* @param int $code
* (optional) The exception code. Defaults to 0.
* @param \Exception $previous
* (optional) A previous exception.
*/
public function __construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->title = $title;
}
/**
* Returns the exception page title.
*
* @return string
*/
public function getTitle() {
return $this->title;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Installer\Exception;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Base class for exceptions thrown by installer.
*/
class InstallerException extends \RuntimeException {
use StringTranslationTrait;
/**
* The page title to output.
*
* @var string
*/
protected $title;
/**
* Constructs a new installer exception.
*
* @param string $title
* The page title.
* @param string $message
* (optional) The exception message. Defaults to 'Error'.
* @param int $code
* (optional) The exception code. Defaults to 0.
* @param \Exception $previous
* (optional) A previous exception.
*/
public function __construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->title = $title;
}
/**
* Returns the exception page title.
*
* @return string
*/
public function getTitle() {
return $this->title;
}
}
Function Calls
None |
Stats
MD5 | 26c828a78234a9edd66f61a1b61d6c5c |
Eval Count | 0 |
Decode Time | 83 ms |