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

HideLocationEvent::getLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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\Location;
10
11
use eZ\Publish\API\Repository\Values\Content\Location;
12
use eZ\Publish\Core\Event\AfterEvent;
13
14
final class HideLocationEvent extends AfterEvent
15
{
16
    public const NAME = 'ezplatform.event.location.hide';
17
18
    /**
19
     * @var \eZ\Publish\API\Repository\Values\Content\Location
20
     */
21
    private $hiddenLocation;
22
23
    /**
24
     * @var \eZ\Publish\API\Repository\Values\Content\Location
25
     */
26
    private $location;
27
28
    public function __construct(
29
        Location $hiddenLocation,
30
        Location $location
31
    ) {
32
        $this->location = $location;
33
        $this->hiddenLocation = $hiddenLocation;
34
    }
35
36
    public function getHiddenLocation(): Location
37
    {
38
        return $this->hiddenLocation;
39
    }
40
41
    public function getLocation(): Location
42
    {
43
        return $this->location;
44
    }
45
}
46