Completed
Push — master ( 2b133d...acf90e )
by Michal
05:36
created

Asset::getAssetPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Webrouse\AssetMacro;
5
6
7
class Asset
8
{
9
	/** @var Revision */
10
	private $revision;
11
12
13 1
	public function __construct(Revision $revision)
14
	{
15 1
		$this->revision = $revision;
16 1
	}
17
18
19
	public function getRevision(): Revision
20
	{
21 1
		return $this->revision;
22
	}
23
24
25
	public function getAssetPath(): string
26
	{
27
		return $this->revision->getAssetPath();
28
	}
29
30
31
	public function getRelativePath(): string
32
	{
33 1
		return $this->revision->getRelativePath();
34
	}
35
36
37
	public function getAbsolutePath(): string
38
	{
39 1
		return $this->revision->getAbsolutePath();
40
	}
41
42
43
	public function getRelativeUrl(): string
44
	{
45 1
		return $this->revision->getRelativeUrl();
46
	}
47
}
48