Passed
Push — main ( a841d7...dafacd )
by Daniel
53s queued 13s
created

Bouncer::allow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * This file is part of the theroadbunch/bouncer package.
5
 *
6
 * (c) Dan McAdams <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace RoadBunch\Bouncer;
13
14
15
/**
16
 * Class Bouncer
17
 *
18
 * @author Dan McAdams <[email protected]>
19
 */
20
class Bouncer
21
{
22
    public static function allow(array|string $subjects = []):  BouncerInterface
23
    {
24
        return new AllowBouncer($subjects);
25
    }
26
27
    public static function deny(array|string $subjects = []): BouncerInterface
28
    {
29
        return new DenyBouncer($subjects);
30
    }
31
}
32