PHP Class Airbrake\Client

Author: Drew Butler ([email protected])
Afficher le fichier Open project: dbtlr/php-airbrake Class Usage Examples

Protected Properties

Свойство Type Description
$configuration Configuration | null
$connection Connection | null
$notice null

Méthodes publiques

Méthode Description
__construct ( Configuration $configuration ) Build the Client with the Airbrake Configuration.
getConfiguration ( ) : Configuration
notify ( airbrake\Notice $notice ) : string | boolean Notify about the notice.
notifyOnError ( string $message, array $backtrace = null, null $extraParams = null ) : string Notify on an error message.
notifyOnException ( Exception $e, null $extraParams = null ) : string Notify on an exception
setConnection ( Airbrake\Connection\ConnectionInterface $connection ) : self Override the default Connection

Méthodes protégées

Méthode Description
cleanBacktrace ( array $backtrace ) : array Clean the backtrace of unneeded junk.
cleanFilePath ( $filePath )

Method Details

__construct() public méthode

Build the Client with the Airbrake Configuration.
public __construct ( Configuration $configuration )
$configuration Configuration

cleanBacktrace() protected méthode

Clean the backtrace of unneeded junk.
protected cleanBacktrace ( array $backtrace ) : array
$backtrace array
Résultat array

cleanFilePath() protected méthode

protected cleanFilePath ( $filePath )

getConfiguration() public méthode

public getConfiguration ( ) : Configuration
Résultat Configuration

notify() public méthode

Notify about the notice.
public notify ( airbrake\Notice $notice ) : string | boolean
$notice airbrake\Notice
Résultat string | boolean

notifyOnError() public méthode

Notify on an error message.
public notifyOnError ( string $message, array $backtrace = null, null $extraParams = null ) : string
$message string
$backtrace array
$extraParams null
Résultat string

notifyOnException() public méthode

Notify on an exception
public notifyOnException ( Exception $e, null $extraParams = null ) : string
$e Exception
$extraParams null
Résultat string

setConnection() public méthode

Override the default Connection
public setConnection ( Airbrake\Connection\ConnectionInterface $connection ) : self
$connection Airbrake\Connection\ConnectionInterface
Résultat self

Property Details

$configuration protected_oe property

protected Configuration,airbrake|null $configuration
Résultat Configuration | null

$connection protected_oe property

protected Connection,airbrake|null $connection
Résultat Connection | null

$notice protected_oe property

protected null $notice
Résultat null