Completed
Push — ezp-30616 ( 0a36b6 )
by
unknown
21:15 queued 06:15
created

BeforeDeleteVersionEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getVersionInfo() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\Event\Content;
10
11
use eZ\Publish\API\Repository\Values\Content\VersionInfo;
12
use eZ\Publish\Core\Event\BeforeEvent;
13
14
final class BeforeDeleteVersionEvent extends BeforeEvent
15
{
16
    public const NAME = 'ezplatform.event.version.delete.before';
17
18
    /**
19
     * @var \eZ\Publish\API\Repository\Values\Content\VersionInfo
20
     */
21
    private $versionInfo;
22
23
    public function __construct(VersionInfo $versionInfo)
24
    {
25
        $this->versionInfo = $versionInfo;
26
    }
27
28
    public function getVersionInfo(): VersionInfo
29
    {
30
        return $this->versionInfo;
31
    }
32
}
33