PHP 클래스 Pantheon\Terminus\Exceptions\TerminusException

상속: extends Exception
파일 보기 프로젝트 열기: pantheon-systems/terminus

공개 메소드들

메소드 설명
__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