Completed
Push — master ( 3d485f...407dff )
by Paweł
66:49
created

RevisionPublishedEvent::getRevision()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Publisher Revision Bundle.
7
 *
8
 * Copyright 2017 Sourcefabric z.u. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2015 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\RevisionBundle\Event;
18
19
use SWP\Component\Revision\Model\RevisionInterface;
20
use Symfony\Component\EventDispatcher\Event;
21
22
class RevisionPublishedEvent extends Event
23
{
24
    /**
25
     * @var RevisionInterface
26
     */
27
    protected $revision;
28
29
    /**
30
     * RevisionPublishedEvent constructor.
31
     *
32
     * @param RevisionInterface $revision
33
     */
34
    public function __construct(RevisionInterface $revision)
35
    {
36
        $this->revision = $revision;
37
    }
38
39
    /**
40
     * @return RevisionInterface
41
     */
42
    public function getRevision(): RevisionInterface
43
    {
44
        return $this->revision;
45
    }
46
}
47