# ThrowableHandlerDocumentInterface

Chevere\Interfaces\ThrowableHandler\ThrowableHandlerDocumentInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of defining a throwable handler document.

# Constants

# SECTION_TITLE

Type string

'title'

# SECTION_MESSAGE

Type string

'message'

# SECTION_CHAIN

Type string

'chain'

# SECTION_ID

Type string

'id'

# SECTION_TIME

Type string

'time'

# SECTION_STACK

Type string

'stack'

# SECTION_SERVER

Type string

'server'

# TAG_TITLE

Type string

'%title%'

# TAG_MESSAGE

Type string

'%message%'

# TAG_CODE_WRAP

Type string

'%codeWrap%'

# TAG_ID

Type string

'%id%'

# TAG_FILE_LINE

Type string

'%fileLine%'

# TAG_DATE_TIME_UTC_ATOM

Type string

'%dateTimeUtcAtom%'

# TAG_TIMESTAMP

Type string

'%timestamp%'

# TAG_STACK

Type string

'%stack%'

# TAG_PHP_UNAME

Type string

'%phpUname%'

# TAG_CHAIN

Type string

'%chain%'

# SECTIONS

Type array

array (
  0 => 'title',
  1 => 'chain',
  2 => 'message',
  3 => 'id',
  4 => 'time',
  5 => 'stack',
  6 => 'server',
)

# SECTIONS_VERBOSITY

Type array

array (
  'title' => 16,
  'chain' => 16,
  'message' => 16,
  'id' => 16,
  'time' => 64,
  'stack' => 128,
  'server' => 64,
)

# Methods

# __construct

Parameters


# withVerbosity

Return an instance with the specified verbosity.

Parameters

  • verbosity: int

Return

static

This method MUST retain the state of the current instance, and return an instance that contains the specified verbosity.

Calling this method will reset the document sections to fit the target verbosity.


# verbosity

Provides access to the instance verbosity.

Return

int


# getSectionTitle

Returns the document title section.

Return

string


# getSectionMessage

Returns the document message section.

Return

string


# getSectionChain

Returns the document chain section.

Return

string


# getSectionId

Returns the document id section.

Return

string


# getSectionTime

Returns the document time section.

Return

string


# getSectionStack

Returns the document stack section.

Return

string


# getSectionServer

Returns the document server section.

Return

string


# getContent

Returns a formatted content for a section.

Parameters

  • content: string

Return

string


# getTemplate

Returns the template used for translating placeholders tags.

Return

array

return [
    'self::::SECTION_TITLE' => $this->getSectionTitle(),
];

# getFormatter

Returns the document formatter.


# toString

Returns a string, representing the object itself or some of its data/properties.

Return

string


Last Updated: 5/1/2021, 2:31:10 PM