Passed
Pull Request — master (#2329)
by
unknown
04:55
created

PreValidateEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 3 1
A setData() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace ApiPlatform\Core\Event;
15
16
use Symfony\Component\EventDispatcher\Event;
17
18
class PreValidateEvent extends Event
19
{
20
    private $data;
21
22
    public function __construct($data)
23
    {
24
        $this->data = $data;
25
    }
26
27
    public function getData()
28
    {
29
        return $this->data;
30
    }
31
32
    public function setData($data): void
33
    {
34
        $this->data = $data;
35
    }
36
}
37