WatchedResource::getCustomName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Inotify;
6
7
class WatchedResource
8
{
9
    private string $pathname;
10
    private int $watchOnChangeFlags;
11
    private string $customName;
12
13 2
    public function __construct(
14
        string $pathname,
15
        int $watchOnChangeFlags,
16
        string $customName
17
    ) {
18 2
        $this->pathname = $pathname;
19 2
        $this->watchOnChangeFlags = $watchOnChangeFlags;
20 2
        $this->customName = $customName;
21
    }
22
23 2
    public function getWatchOnChangeFlags(): int
24
    {
25 2
        return $this->watchOnChangeFlags;
26
    }
27
28 2
    public function getCustomName(): string
29
    {
30 2
        return $this->customName;
31
    }
32
33 2
    public function getPathname(): string
34
    {
35 2
        return $this->pathname;
36
    }
37
}