interface LoggerAwareInterface implements LoggerAwareInterface

Interface for logger aware.

Methods

bool
hasLogger()

Returns true if a logger instance is set.

LoggerInterface|null
getLogger()

Returns a logger instance or null.

$this
setLogger( LoggerInterface $logger = null)

Sets logger instance.

Details

at line line 27
bool hasLogger()

Returns true if a logger instance is set.

Return Value

bool

at line line 34
LoggerInterface|null getLogger()

Returns a logger instance or null.

Return Value

LoggerInterface|null

at line line 43
$this setLogger( LoggerInterface $logger = null)

Sets logger instance.

Parameters

LoggerInterface $logger An instance of LoggerInterface

Return Value

$this