AbstractAssociationEventDto::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 3
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