Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
DirectoryEntry
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getFilePath
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setFilePath
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLevel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLevel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 hasSubDirs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setHasSubDirs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 * @author: Doug Wilbourne (dougwilbourne@gmail.com)
5 */
6declare(strict_types=1);
7
8namespace pvc\file\filesys;
9
10/**
11 * Class DirectoryEntry
12 */
13class DirectoryEntry
14{
15    /**
16     * @var string
17     */
18    protected string $filePath;
19
20    /**
21     * @var int
22     */
23    protected int $level;
24
25    /**
26     * @var bool
27     */
28    protected bool $hasSubDirs;
29
30    /**
31     * getFilePath
32     * @return string
33     */
34    public function getFilePath(): string
35    {
36        return $this->filePath;
37    }
38
39    /**
40     * setFilePath
41     * @param string $filePath
42     */
43    public function setFilePath(string $filePath): void
44    {
45        $this->filePath = $filePath;
46    }
47
48    /**
49     * getLevel
50     * @return non-negative-int
51     */
52    public function getLevel(): int
53    {
54        return $this->level;
55    }
56
57    /**
58     * setLevel
59     * @param non-negative-int $level
60     */
61    public function setLevel(int $level): void
62    {
63        $this->level = $level;
64    }
65
66    public function hasSubDirs(): bool
67    {
68        return $this->hasSubDirs;
69    }
70
71    public function setHasSubDirs(bool $hasSubDirs): void
72    {
73        $this->hasSubDirs = $hasSubDirs;
74    }
75}