Total Complexity | 8 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ProcessNode implements IProcessNodes |
||
18 | { |
||
19 | protected IProcessNodes $adapter; |
||
20 | |||
21 | 22 | public function __construct(IStorage $storage, ?IFLTranslations $lang = null) |
|
22 | { |
||
23 | 22 | $factory = new Nodes\Factory(); |
|
24 | 22 | $this->adapter = $factory->getClass($storage, $lang); |
|
25 | } |
||
26 | |||
27 | 11 | public function exists(array $entry): bool |
|
30 | } |
||
31 | |||
32 | 2 | public function isReadable(array $entry): bool |
|
33 | { |
||
34 | 2 | return $this->adapter->isReadable($entry); |
|
35 | } |
||
36 | |||
37 | 2 | public function isWritable(array $entry): bool |
|
38 | { |
||
39 | 2 | return $this->adapter->isWritable($entry); |
|
40 | } |
||
41 | |||
42 | 11 | public function isDir(array $entry): bool |
|
43 | { |
||
44 | 11 | return $this->adapter->isDir($entry); |
|
45 | } |
||
46 | |||
47 | 7 | public function isFile(array $entry): bool |
|
48 | { |
||
49 | 7 | return $this->adapter->isFile($entry); |
|
50 | } |
||
51 | |||
52 | 6 | public function size(array $entry): ?int |
|
53 | { |
||
54 | 6 | return $this->adapter->size($entry); |
|
55 | } |
||
56 | |||
57 | 5 | public function created(array $entry): ?DateTimeInterface |
|
60 | } |
||
61 | } |
||
62 |