Completed
Push — master ( 6fba66...640c23 )
by
unknown
32:41 queued 12:46
created

UrlAliasForSwappedLocation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 15
c 0
b 0
f 0
cc 1
eloc 13
nop 6
rs 9.4285
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
namespace eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\DTO;
8
9
/**
10
 * @internal To be used internally by UrlAlias Persistence Handler.
11
 */
12
class UrlAliasForSwappedLocation
13
{
14
    public function __construct(
15
        $id,
16
        $parentId,
17
        $name,
18
        $isAlwaysAvailable,
19
        $isPathIdentificationStringModified,
20
        $newId
21
    ) {
22
        $this->id = $id;
23
        $this->parentId = $parentId;
24
        $this->name = $name;
25
        $this->isAlwaysAvailable = $isAlwaysAvailable;
26
        $this->isPathIdentificationStringModified = $isPathIdentificationStringModified;
27
        $this->newId = $newId;
28
    }
29
30
    /**
31
     * @var int
32
     */
33
    public $id;
34
35
    /**
36
     * @var int
37
     */
38
    public $parentId;
39
40
    /**
41
     * @var string
42
     */
43
    public $name;
44
45
    /**
46
     * @var bool
47
     */
48
    public $isAlwaysAvailable;
49
50
    /**
51
     * @var bool
52
     */
53
    public $isPathIdentificationStringModified;
54
55
    /**
56
     * @var int
57
     */
58
    public $newId;
59
}
60