MapperEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\ORM\Entity\Behavior\Event;
6
7
use Cycle\ORM\Heap\Node;
8
use Cycle\ORM\Heap\State;
9
use Cycle\ORM\MapperInterface;
10
use Cycle\ORM\Select\SourceInterface;
11
12
/**
13
 * Don't listen to this event
14
 */
15
abstract class MapperEvent
16
{
17
    public function __construct(
18
        public string $role,
19
        public MapperInterface $mapper,
20
        public object $entity,
21
        public Node $node,
22
        public State $state,
23
        public SourceInterface $source,
24
        public \DateTimeImmutable $timestamp,
25
    ) {}
26
}
27