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

VersionTranslationInfo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
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 getVersionInfo() 0 4 1
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