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

Directory::path()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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