PHP Класс Pantheon\Terminus\Exceptions\TerminusException

Наследование: extends Exception
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $message = null, array $replacements = [], integer $code ) Object constructor. Sets context array as replacements property
getRawMessage ( ) : string Returns the replacements context array
getReplacements ( ) : array Returns the replacements context array

Защищенные методы

Метод Описание
interpolateString ( string $message, array $replacements ) : string Replace the variables into the message string.

Описание методов

__construct() публичный Метод

Object constructor. Sets context array as replacements property
public __construct ( string $message = null, array $replacements = [], integer $code )
$message string Message to send when throwing the exception
$replacements array Context array to interpolate into message
$code integer Exit code

getRawMessage() публичный Метод

Returns the replacements context array
public getRawMessage ( ) : string
Результат string $this->replacements

getReplacements() публичный Метод

Returns the replacements context array
public getReplacements ( ) : array
Результат array $this->replacements The replacement variables.

interpolateString() защищенный Метод

Replace the variables into the message string.
protected interpolateString ( string $message, array $replacements ) : string
$message string The raw, uninterpolated message string
$replacements array The values to replace into the message
Результат string