BaseUserIdExtractor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 8
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace Potievdev\SlimRbac\Component\UserIdExtractor;
4
5
class BaseUserIdExtractor
6
{
7
    public const DEFAULT_USER_ID_FIELD_NAME = 'userId';
8
9
    protected $userIdFieldName;
10
11
    public function __construct(string $userIdFieldName = self::DEFAULT_USER_ID_FIELD_NAME) {
12
        $this->userIdFieldName = $userIdFieldName;
13
    }
14
15
}