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

SecuredController::rbacUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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