Completed
Push — signal-slots ( f9cce0...3c05c8 )
by
unknown
14:14
created

DeleteLanguageEvent   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 getLanguage() 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\Language;
10
11
use eZ\Publish\API\Repository\Values\Content\Language;
12
use eZ\Publish\Core\Event\AfterEvent;
13
14
final class DeleteLanguageEvent extends AfterEvent
15
{
16
    public const NAME = 'ezplatform.event.language.delete';
17
18
    /**
19
     * @var \eZ\Publish\API\Repository\Values\Content\Language
20
     */
21
    private $language;
22
23
    public function __construct(Language $language)
24
    {
25
        $this->language = $language;
26
    }
27
28
    public function getLanguage(): Language
29
    {
30
        return $this->language;
31
    }
32
}
33