Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Suppress.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Log/Filter/Abstract.php';
25 
35 {
39  protected $_accept = true;
40 
50  public function suppress($suppress)
51  {
52  $this->_accept = (! $suppress);
53  }
54 
61  public function accept($event)
62  {
63  return $this->_accept;
64  }
65 
73  static public function factory($config)
74  {
75  return new self();
76  }
77 }
$config
Definition: fraud_order.php:17
static factory($config)
Definition: Suppress.php:73