AbstractAssociationEventDto   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 8
c 1
b 0
f 0
dl 0
loc 22
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMapping() 0 3 1
A __construct() 0 6 1
A getTarget() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DH\Auditor\Event\Dto;
6
7
abstract class AbstractAssociationEventDto extends AbstractEventDto
8
{
9
    private object $target;
10
11
    private array $mapping;
12
13
    public function __construct(object $source, object $target, array $mapping)
14
    {
15
        parent::__construct($source);
16
17
        $this->target = $target;
18
        $this->mapping = $mapping;
19
    }
20
21
    public function getTarget(): object
22
    {
23
        return $this->target;
24
    }
25
26
    public function getMapping(): array
27
    {
28
        return $this->mapping;
29
    }
30
}
31