Completed
Push — master ( 6af785...cbc83f )
by Iman
05:36
created

Session::sessionShouldHave()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Conditions;
4
5
trait Session
6
{
7
    public function sessionShouldHave($key)
8
    {
9
        return function () use ($key) {
10
            return session()->has($key);
11
        };
12
    }
13
}