WatchedResource   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
c 0
b 0
f 0
dl 0
loc 29
ccs 10
cts 10
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getWatchOnChangeFlags() 0 3 1
A getPathname() 0 3 1
A getCustomName() 0 3 1
A __construct() 0 8 1
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
}