Completed
Push — master ( 3b81a9...3f7578 )
by ARCANEDEV
13:05
created

Session   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasUser() 0 4 1
1
<?php namespace Arcanesoft\Tracker\Models;
2
3
use Arcanedev\LaravelTracker\Models\Session as BaseSession;
4
5
/**
6
 * Class     Session
7
 *
8
 * @package  Arcanesoft\Tracker\Models
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class Session extends BaseSession
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Traits
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    use Presenters\SessionPresenter;
18
19
    /* ------------------------------------------------------------------------------------------------
20
     |  Check Functions
21
     | ------------------------------------------------------------------------------------------------
22
     */
23
    /**
24
     * Check if the user exists.
25
     *
26
     * @return bool
27
     */
28
    public function hasUser()
29
    {
30
        return ! is_null($this->user);
31
    }
32
}
33