AppRoles   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAppRoles() 0 4 1
A create() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Kerox\Messenger\Model\Callback;
6
7
class AppRoles
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $appRoles = [];
13
14
    /**
15
     * AppRoles constructor.
16
     */
17 1
    public function __construct(array $appRoles)
18
    {
19 1
        $this->appRoles = $appRoles;
20 1
    }
21
22 1
    public function getAppRoles(): array
23
    {
24 1
        return $this->appRoles;
25
    }
26
27
    /**
28
     * @return \Kerox\Messenger\Model\Callback\AppRoles
29
     */
30 1
    public static function create(array $callbackData): self
31
    {
32 1
        return new self($callbackData);
33
    }
34
}
35