SimpleRecaptchaV3   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A generateId() 0 5 1
A __construct() 0 3 1
1
<?php
2
3
namespace Torralbodavid\SimpleRecaptchaV3;
4
5
class SimpleRecaptchaV3
6
{
7
    protected $id;
8
9
    public function __construct()
10
    {
11
        $this->id = 0;
12
    }
13
14
    public function generateId(): string
15
    {
16
        $this->id = $this->id + 1;
17
18
        return encrypt($this->id);
19
    }
20
}
21