RegisterOrganizationUserElementDefaultTableAttributes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/patron/license
6
 * @link       https://www.flipboxfactory.com/software/patron/
7
 */
8
9
namespace flipbox\organizations\events\handlers;
10
11
use craft\events\RegisterElementDefaultTableAttributesEvent;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
class RegisterOrganizationUserElementDefaultTableAttributes
18
{
19
    /**
20
     * @param RegisterElementDefaultTableAttributesEvent $event
21
     */
22
    public static function handle(RegisterElementDefaultTableAttributesEvent $event)
23
    {
24
        $event->tableAttributes[] = 'state';
25
        $event->tableAttributes[] = 'types';
26
        $event->tableAttributes[] = 'edit';
27
    }
28
}
29