Passed
Push — main ( d7b583...5d4186 )
by Alexandra
03:09
created

RandomObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFileNumber() 0 3 1
A getDirPath() 0 3 1
A __construct() 0 6 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 function __construct(
14
        string $dirPath,
15
        int $fileNumber
16
    ) {
17
        $this->dirPath = $dirPath;
18
        $this->fileNumber = $fileNumber;
19
    }
20
21
    public function getDirPath(): string
22
    {
23
        return $this->dirPath;
24
    }
25
26
    public function getFileNumber(): int
27
    {
28
        return $this->fileNumber;
29
    }
30
31
}
32