Passed
Pull Request — master (#94)
by
unknown
02:57 queued 02:57
created

AbstractEventDto   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSource() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DH\Auditor\Event\Dto;
6
7
abstract class AbstractEventDto
8
{
9
    private object $source;
10
11
    public function __construct(object $source)
12
    {
13
        $this->source = $source;
14
    }
15
16
    public function getSource(): object
17
    {
18
        return $this->source;
19
    }
20
}
21