Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Data Fields
Zend_Log_Writer_Mock Class Reference
Inheritance diagram for Zend_Log_Writer_Mock:
Zend_Log_Writer_Abstract Zend_Log_FactoryInterface

Public Member Functions

 _write ($event)
 
 shutdown ()
 
- Public Member Functions inherited from Zend_Log_Writer_Abstract
 addFilter ($filter)
 
 setFormatter (Zend_Log_Formatter_Interface $formatter)
 
 shutdown ()
 

Static Public Member Functions

static factory ($config)
 

Data Fields

 $events = array()
 
 $shutdown = false
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Log_Writer_Abstract
 _write ($event)
 
- Static Protected Member Functions inherited from Zend_Log_Writer_Abstract
static _parseConfig ($config)
 
- Protected Attributes inherited from Zend_Log_Writer_Abstract
 $_filters = array()
 
 $_formatter
 

Detailed Description

Definition at line 34 of file Mock.php.

Member Function Documentation

◆ _write()

_write (   $event)

Write a message to the log.

Parameters
array$eventevent data
Returns
void

Definition at line 56 of file Mock.php.

57  {
58  $this->events[] = $event;
59  }

◆ factory()

static factory (   $config)
static

Create a new instance of Zend_Log_Writer_Mock

Parameters
array | Zend_Config$config
Returns
Zend_Log_Writer_Mock

Implements Zend_Log_FactoryInterface.

Definition at line 77 of file Mock.php.

78  {
79  return new self();
80  }

◆ shutdown()

shutdown ( )

Record shutdown

Returns
void

Definition at line 66 of file Mock.php.

67  {
68  $this->shutdown = true;
69  }

Field Documentation

◆ $events

$events = array()

Definition at line 41 of file Mock.php.

◆ $shutdown

Definition at line 48 of file Mock.php.


The documentation for this class was generated from the following file: