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

RandomObject::getFileNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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