Passed
Push — main ( 8bfeba...683260 )
by Teodoro
01:57
created

NullVersioned::prepareFile()   A

Complexity

Conditions 5
Paths 5

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 15
rs 9.6111
cc 5
nc 5
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tleckie\Assets\Versioned;
6
7
/**
8
 * Class NullVersioned
9
 *
10
 * @package  Tleckie\Assets\Versioned
11
 * @category NullVersioned
12
 * @author   Teodoro Leckie Westberg <[email protected]>
13
 */
14
class NullVersioned implements VersionedInterface
15
{
16
    /**
17
     * @var string
18
     */
19
    protected string $version = '';
20
21
    /**
22
     * @var string
23
     */
24
    protected string $format = '';
25
26
    /**
27
     * @inheritdoc
28
     */
29
    public function version(): string
30
    {
31
        return $this->version;
32
    }
33
34
    /**
35
     * @inheritdoc
36
     */
37
    public function applyVersion(string $asset): string
38
    {
39
        return $asset;
40
    }
41
}
42