Completed
Push — master ( aa6f89...863f7f )
by John
08:07
created

SecuredController   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A secure() 0 4 1
A rbacUser() 0 4 1
A rbacAdmin() 0 4 1
A unsecured() 0 4 1
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Tests\Functional\PetStore\Controller;
10
11
/**
12
 * @author John Kleijn <[email protected]>
13
 */
14
class SecuredController
15
{
16
    /**
17
     * @return string
18
     */
19
    public function secure(): string
20
    {
21
        return 'SECURED CONTENT';
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function rbacUser(): string
28
    {
29
        return 'USER CONTENT';
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function rbacAdmin(): string
36
    {
37
        return 'ADMIN CONTENT';
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function unsecured(): string
44
    {
45
        return 'UNSECURED CONTENT';
46
    }
47
}
48