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

PostSerializeEvent::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
final class PostSerializeEvent extends Event
19
{
20
    private $data;
21
22
    public function __construct($object)
23
    {
24
        $this->data = $object;
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