UsersTrait::beforeSetCurrent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 0
cts 3
cp 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace ByTIC\Hello\Models\Users\Traits;
4
5
use ByTIC\Auth\Models\Users\Traits\AbstractUsersTrait;
6
7
/**
8
 * Trait UsersTrait
9
 * @package ByTIC\Hello\Models\Users\Traits
10
 */
11
trait UsersTrait
12
{
13
    use AbstractUsersTrait {
14
        beforeSetCurrent as beforeSetCurrentTrait;
15
    }
16
17
    /**
18
     * @param UserTrait $item
19
     */
20
    public function beforeSetCurrent($item)
21
    {
22
        $this->beforeSetCurrentTrait($item);
23
        $item->checkAccessToken();
24
    }
25
}
26