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

UpdateLocationEvent::getUpdatedLocation()   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\API\Repository\Values\Content\LocationUpdateStruct;
13
use eZ\Publish\Core\Event\AfterEvent;
14
15
final class UpdateLocationEvent extends AfterEvent
16
{
17
    public const NAME = 'ezplatform.event.location.update';
18
19
    /**
20
     * @var \eZ\Publish\API\Repository\Values\Content\Location
21
     */
22
    private $updatedLocation;
23
24
    /**
25
     * @var \eZ\Publish\API\Repository\Values\Content\Location
26
     */
27
    private $location;
28
29
    /**
30
     * @var \eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct
31
     */
32
    private $locationUpdateStruct;
33
34
    public function __construct(
35
        Location $updatedLocation,
36
        Location $location,
37
        LocationUpdateStruct $locationUpdateStruct
38
    ) {
39
        $this->updatedLocation = $updatedLocation;
40
        $this->location = $location;
41
        $this->locationUpdateStruct = $locationUpdateStruct;
42
    }
43
44
    public function getUpdatedLocation(): Location
45
    {
46
        return $this->updatedLocation;
47
    }
48
49
    public function getLocation(): Location
50
    {
51
        return $this->location;
52
    }
53
54
    public function getLocationUpdateStruct(): LocationUpdateStruct
55
    {
56
        return $this->locationUpdateStruct;
57
    }
58
}
59