Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Mock.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Log/Writer/Abstract.php';
25 
35 {
41  public $events = array();
42 
48  public $shutdown = false;
49 
56  public function _write($event)
57  {
58  $this->events[] = $event;
59  }
60 
66  public function shutdown()
67  {
68  $this->shutdown = true;
69  }
70 
77  static public function factory($config)
78  {
79  return new self();
80  }
81 }
$config
Definition: fraud_order.php:17
_write($event)
Definition: Mock.php:56
static factory($config)
Definition: Mock.php:77