Completed
Push — develop ( 05d944...aa64cd )
by Nate
08:48
created

OrganizationAttributeTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A organizationAttributes() 0 6 1
A organizationAttributeLabels() 0 6 1
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\organizations\models;
10
11
use flipbox\organizations\Organizations;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 2.0.0
16
 */
17
trait OrganizationAttributeTrait
18
{
19
    use OrganizationRulesTrait, \flipbox\organizations\objects\OrganizationAttributeTrait;
20
21
    /**
22
     * @return array
23
     */
24
    protected function organizationAttributes(): array
25
    {
26
        return [
27
            'organizationId'
28
        ];
29
    }
30
31
    /**
32
     * @return array
33
     */
34
    protected function organizationAttributeLabels(): array
35
    {
36
        return [
37
            'organizationId' => Organizations::t('Organization Id')
38
        ];
39
    }
40
}
41