RandomObject   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFileNumber() 0 3 1
A getDirPath() 0 3 1
A getRandomList() 0 3 1
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AHJ\ApprovalTests\Tests\Example;
6
7
final class RandomObject
8
{
9
    public string $dirPath;
10
11
    public int $fileNumber;
12
13
    public array $randomList;
14
15
    public function __construct(
16
        string $dirPath,
17
        int $fileNumber,
18
        array $randomList
19
    ) {
20
        $this->dirPath = $dirPath;
21
        $this->fileNumber = $fileNumber;
22
        $this->randomList = $randomList;
23
    }
24
25
    public function getDirPath(): string
26
    {
27
        return $this->dirPath;
28
    }
29
30
    public function getFileNumber(): int
31
    {
32
        return $this->fileNumber;
33
    }
34
35
    public function getRandomList(): array
36
    {
37
        return $this->randomList;
38
    }
39
}
40