Completed
Push — develop ( 686594...b5844e )
by Florent
03:11
created

SubjectChecker   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 1
c 2
b 1
f 1
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSubjectAllowed() 0 4 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2016 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace Jose\Test\Stub;
13
14
use Jose\Checker\SubjectChecker as Base;
15
16
class SubjectChecker extends Base
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function isSubjectAllowed($subject)
22
    {
23
        return in_array($subject, ['SUB1', 'SUB2']);
24
    }
25
}
26