Completed
Push — migrate-files-no-interaction ( 025687...608925 )
by
unknown
46:43 queued 18:48
created

TranslationValues   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setField() 0 4 1
1
<?php
2
3
/**
4
 * File containing the eZ\Publish\Core\Repository\Values\Content\TranslationValues class.
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\Repository\Values\Content;
10
11
use eZ\Publish\API\Repository\Values\Content\TranslationValues as APITranslationValues;
12
13
/**
14
 * This value object is used for adding a translation to a version.
15
 *
16
 * @property-write FieldCollection $fields
17
 *
18
 * @internal Meant for internal use by Repository, type hint against API object instead.
19
 */
20
class TranslationValues extends APITranslationValues
21
{
22
    /**
23
     * @var FieldCollection
24
     */
25
    public $fields;
26
27
    /**
28
     * Adds a translated field to the field collection in the given language
29
     * This method is also be implemented by ArrayAccess so that
30
     * $fields[$fieldDefIdentifier] = $value is an equivalent call.
31
     *
32
     * @param string $fieldDefIdentifier the identifier of the field definition
33
     * @param mixed $value Either a plain value which is understandable by the field type or an instance of a Value class provided by the field type
34
     */
35
    public function setField($fieldDefIdentifier, $value)
36
    {
37
        // @todo: implement
38
    }
39
}
40