Completed
Push — master ( 0ff500...dd6203 )
by André
25:15 queued 09:04
created

VersionTranslationInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the eZ Publish Kernel package.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\REST\Server\Values;
10
11
use eZ\Publish\API\Repository\Values\Content\VersionInfo;
12
use eZ\Publish\Core\REST\Common\Value as RestValue;
13
14
/**
15
 * Version Translations information view model.
16
 */
17
class VersionTranslationInfo extends RestValue
18
{
19
    /**
20
     * @var \eZ\Publish\API\Repository\Values\Content\VersionInfo
21
     */
22
    private $versionInfo;
23
24
    /**
25
     * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
26
     */
27
    public function __construct(VersionInfo $versionInfo)
28
    {
29
        $this->versionInfo = $versionInfo;
30
    }
31
32
    /**
33
     * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo
34
     */
35
    public function getVersionInfo()
36
    {
37
        return $this->versionInfo;
38
    }
39
}
40