Test Failed
Push — main ( adf654...4b0a6a )
by Filipe
01:04
created

Directory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A path() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of fswatch
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Slick\FsWatch;
13
14
/**
15
 * Directory
16
 *
17
 * @package Slick\FsWatch
18
 */
19
final class Directory
20
{
21
    /**
22
     * Creates a Directory
23
     *
24
     * @param string $path
25
     */
26
    public function __construct(private readonly string $path)
27
    {
28
29
    }
30
31
    /**
32
     * Returns the directory path.
33
     *
34
     * @return string The path.
35
     */
36
    public function path(): string
37
    {
38
        return $this->path;
39
    }
40
}
41