Completed
Push — develop ( 11971b...45f15f )
by Nate
06:59
created

IdAttributeTrait::idAttributeLabels()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-ember/
7
 */
8
9
namespace flipbox\craft\ember\models;
10
11
use Craft;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 2.0.0
16
 */
17
trait IdAttributeTrait
18
{
19
    use IdRulesTrait, \flipbox\craft\ember\objects\IdAttributeTrait;
20
21
    /**
22
     * @inheritdoc
23
     */
24
    protected function idAttributes(): array
25
    {
26
        return [
27
            'id'
28
        ];
29
    }
30
31
    /**
32
     * @inheritdoc
33
     */
34
    protected function idAttributeLabels(): array
35
    {
36
        return [
37
            'id' => Craft::t('app', 'Id')
38
        ];
39
    }
40
}
41