Completed
Push — master ( 7b9104...2433c1 )
by Tim
02:44
created

CleanupEvent   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getModus() 0 4 1
A getRepository() 0 4 1
A getModel() 0 4 1
A getFunction() 0 4 1
A setFunction() 0 4 1
1
<?php
2
3
namespace HDNET\Calendarize\Event;
4
5
final class CleanupEvent
6
{
7
    private $modus;
8
9
    private $repository;
10
11
    private $model;
12
13
    private $function;
14
15
    public function __construct($modus, $repository, $model, $function)
16
    {
17
        $this->modus = $modus;
18
        $this->repository = $repository;
19
        $this->model = $model;
20
        $this->function = $function;
21
    }
22
23
    public function getModus()
24
    {
25
        return $this->modus;
26
    }
27
28
    public function getRepository()
29
    {
30
        return $this->repository;
31
    }
32
33
    public function getModel()
34
    {
35
        return $this->model;
36
    }
37
38
    public function getFunction()
39
    {
40
        return $this->function;
41
    }
42
43
    public function setFunction($function): void
44
    {
45
        $this->function = $function;
46
    }
47
}
48