PropertyCreateEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 15
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setProperty() 0 3 1
A getProperty() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\Event\Events;
6
7
use LAG\AdminBundle\Metadata\Property\PropertyInterface;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
class PropertyCreateEvent extends Event
11
{
12
    public function __construct(
13
        private PropertyInterface $property
14
    ) {
15
    }
16
17
    public function getProperty(): PropertyInterface
18
    {
19
        return $this->property;
20
    }
21
22
    public function setProperty(PropertyInterface $property): void
23
    {
24
        $this->property = $property;
25
    }
26
}
27