Completed
Push — language_match_api_logic ( a7e09e...cf6f59 )
by André
20:52 queued 10s
created

ObjectStateGroup::getName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 8
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * File containing the ObjectStateGroup 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\ObjectState;
10
11
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup as APIObjectStateGroup;
12
use eZ\Publish\Core\Repository\Values\MultiLanguageDescriptionTrait;
13
use eZ\Publish\Core\Repository\Values\MultiLanguageNameTrait;
14
use eZ\Publish\Core\Repository\Values\MultiLanguageTrait;
15
16
/**
17
 * This class represents an object state group value.
18
 *
19
 * @property-read mixed $id the id of the content type group
20
 * @property-read string $identifier the identifier of the content type group
21
 * @property-read string $defaultLanguageCode, the default language code of the object state group names and description used for fallback.
22
 * @property-read string[] $languageCodes the available languages
23
 *
24
 * @internal Meant for internal use by Repository, type hint against API object instead.
25
 */
26
class ObjectStateGroup extends APIObjectStateGroup
27
{
28
    use MultiLanguageTrait;
29
    use MultiLanguageNameTrait;
30
    use MultiLanguageDescriptionTrait;
31
}
32