PHP Class Metabor\Statemachine\Observer\TransitionLogger

Author: otischlinger
Inheritance: implements SplObserver
Afficher le fichier Open project: metabor/statemachine Class Usage Examples

Protected Properties

Свойство Type Description
$logger Psr\Log\LoggerInterface
$loggerLevel string

Méthodes publiques

Méthode Description
__construct ( Psr\Log\LoggerInterface $logger, string $loggerLevel = LogLevel::INFO, MetaborStd\StringConverterInterface $stringConverter = null )
update ( SplSubject $stateMachine )

Méthodes protégées

Méthode Description
createLoggerContext ( MetaborStd\Statemachine\StatemachineInterface $stateMachine ) : array
createLoggerMessage ( array $context ) : string

Method Details

__construct() public méthode

public __construct ( Psr\Log\LoggerInterface $logger, string $loggerLevel = LogLevel::INFO, MetaborStd\StringConverterInterface $stringConverter = null )
$logger Psr\Log\LoggerInterface
$loggerLevel string
$stringConverter MetaborStd\StringConverterInterface

createLoggerContext() protected méthode

protected createLoggerContext ( MetaborStd\Statemachine\StatemachineInterface $stateMachine ) : array
$stateMachine MetaborStd\Statemachine\StatemachineInterface
Résultat array

createLoggerMessage() protected méthode

protected createLoggerMessage ( array $context ) : string
$context array
Résultat string

update() public méthode

See also: SplObserver::update()
public update ( SplSubject $stateMachine )
$stateMachine SplSubject

Property Details

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$loggerLevel protected_oe property

protected string $loggerLevel
Résultat string