1: <?php
2: /**
3: * Copyright 2013-2014 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (GPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/gpl.
7: *
8: * @category Horde
9: * @copyright 2013-2014 Horde LLC
10: * @license http://www.horde.org/licenses/gpl GPL
11: * @package IMP
12: */
13:
14: /**
15: * Null spam reporting.
16: *
17: * @author Michael Slusarz <slusarz@horde.org>
18: * @category Horde
19: * @copyright 2013-2014 Horde LLC
20: * @license http://www.horde.org/licenses/gpl GPL
21: * @package IMP
22: */
23: class IMP_Spam_Null implements IMP_Spam_Base
24: {
25: /**
26: * Success status.
27: *
28: * @var boolean
29: */
30: protected $_success;
31:
32: /**
33: * Constructor.
34: *
35: * @param boolean $success Success status.
36: */
37: public function __construct($success)
38: {
39: $this->_success = $success;
40: }
41:
42: /**
43: */
44: public function report(IMP_Contents $contents, $action)
45: {
46: return $this->_success;
47: }
48:
49: }
50: