Test Failed
Push — master ( 5ef3bf...0f5f8c )
by Christian
03:06
created

ExistsPermission   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
1
<?php
2
3
namespace Omatech\Mage\Core\Domains\Permissions\Jobs;
4
5
use Omatech\Mage\Core\Domains\Permissions\Permission;
6
use Omatech\Mage\Core\Domains\Permissions\Contracts\ExistsPermissionInterface;
7
8
class ExistsPermission
9
{
10
    /**
11
     * @param Permission $permission
12
     * @return bool
13
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
14
     */
15
    public function make(Permission $permission): bool
16
    {
17
        return app()->make(ExistsPermissionInterface::class)->exists($permission);
18
    }
19
}
20