Completed
Push — master ( b7e6d7...fe783a )
by Nate
10:27 queued 08:34
created

OrganizationUserAssociationQuery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fixedOrderColumn() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/organization/license
6
 * @link       https://www.flipboxfactory.com/software/organization/
7
 */
8
9
namespace flipbox\organizations\db;
10
11
/**
12
 * @author Flipbox Factory <[email protected]>
13
 * @since 1.0.0
14
 */
15
class OrganizationUserAssociationQuery extends UserAssociationQuery
16
{
17
    /**
18
     * The sort order attribute
19
     */
20
    const SORT_ORDER_ATTRIBUTE = 'organizationOrder';
21
22
    /**
23
     * @inheritdoc
24
     */
25
    protected function fixedOrderColumn(): string
26
    {
27
        return 'organizationId';
28
    }
29
}
30