Passed
Push — master ( 6213ef...316ca8 )
by Caen
03:06 queued 14s
created

ForwardsFilesystem::pathToAbsolute()   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
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Foundation\Concerns;
6
7
/**
8
 * @internal Single-use trait for the HydeKernel class.
9
 *
10
 * @see \Hyde\Foundation\HydeKernel
11
 */
12
trait ForwardsFilesystem
13
{
14
    public function path(string $path = ''): string
15
    {
16
        return $this->filesystem->path($path);
17
    }
18
19
    public function vendorPath(string $path = ''): string
20
    {
21
        return $this->filesystem->vendorPath($path);
22
    }
23
24
    public function copy(string $from, string $to): bool
25
    {
26
        return $this->filesystem->copy($from, $to);
27
    }
28
29
    public function touch(string|array $path): bool
30
    {
31
        return $this->filesystem->touch($path);
32
    }
33
34
    public function unlink(string|array $path): bool
35
    {
36
        return $this->filesystem->unlink($path);
37
    }
38
39
    public function getModelSourcePath(string $model, string $path = ''): string
40
    {
41
        return $this->filesystem->getModelSourcePath($model, $path);
42
    }
43
44
    public function getBladePagePath(string $path = ''): string
45
    {
46
        return $this->filesystem->getBladePagePath($path);
47
    }
48
49
    public function getMarkdownPagePath(string $path = ''): string
50
    {
51
        return $this->filesystem->getMarkdownPagePath($path);
52
    }
53
54
    public function getMarkdownPostPath(string $path = ''): string
55
    {
56
        return $this->filesystem->getMarkdownPostPath($path);
57
    }
58
59
    public function getDocumentationPagePath(string $path = ''): string
60
    {
61
        return $this->filesystem->getDocumentationPagePath($path);
62
    }
63
64
    public function sitePath(string $path = ''): string
65
    {
66
        return $this->filesystem->sitePath($path);
67
    }
68
69
    public function pathToAbsolute(string $path): string
70
    {
71
        return $this->filesystem->pathToAbsolute($path);
72
    }
73
74
    public function pathToRelative(string $path): string
75
    {
76
        return $this->filesystem->pathToRelative($path);
77
    }
78
}
79