Completed
Push — ezp-30616-follow-up ( de1597...f1c1e1 )
by
unknown
14:34
created

DeleteBookmarkEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
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 getLocation() 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\API\Repository\Events\Bookmark;
10
11
use eZ\Publish\API\Repository\Values\Content\Location;
12
use eZ\Publish\SPI\Repository\Event\AfterEvent;
13
14
final class DeleteBookmarkEvent extends AfterEvent
15
{
16
    /** @var \eZ\Publish\API\Repository\Values\Content\Location */
17
    private $location;
18
19
    public function __construct(Location $location)
20
    {
21
        $this->location = $location;
22
    }
23
24
    public function getLocation(): Location
25
    {
26
        return $this->location;
27
    }
28
}
29