Completed
Push — master ( 2731ff...16fe27 )
by Nate
03:36 queued 11s
created

handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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
    }
26
}
27