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

AbstractSpamCheck   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 50
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A isFailed() 0 4 1
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