Completed
Push — master ( 054192...eb3219 )
by Torben
02:56 queued 01:47
created

AbstractSpamCheck::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
declare(strict_types=1);
3
namespace DERHANSEN\SfEventMgt\SpamChecks;
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
use DERHANSEN\SfEventMgt\Domain\Model\Registration;
13
14
/**
15
 * AbstractSpamCheck
16
 */
17
abstract class AbstractSpamCheck implements SpamCheckInterface
18
{
19
    /**
20
     * @var Registration
21
     */
22
    protected $registration = null;
23
24
    /**
25
     * @var array
26
     */
27
    protected $settings = [];
28
29
    /**
30
     * @var array
31
     */
32
    protected $configuration = [];
33
34
    /**
35
     * @var array
36
     */
37
    protected $arguments = [];
38
39
    /**
40
     * AbstractSpamCheck constructor.
41
     *
42
     * @param Registration $registration
43
     * @param array $settings
44
     * @param array $arguments
45
     * @param array $configuration
46
     */
47
    public function __construct(
48
        Registration $registration,
49
        array $settings,
50
        array $arguments,
51
        array $configuration = []
52
    ) {
53
        $this->registration = $registration;
54
        $this->settings = $settings;
55
        $this->configuration = $configuration;
56
        $this->arguments = $arguments;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62
    public function isFailed(): bool
63
    {
64
        return true;
65
    }
66
}
67