Completed
Push — EZP-31267-io-config-resolver ( f10ddb )
by
unknown
18:38
created

IOConfigResolver   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRootDir() 0 4 1
A getLegacyUrlPrefix() 0 4 1
A getUrlPrefix() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\Repository\SiteAccessAware\Config;
10
11
use eZ\Publish\Core\IO\IOConfig;
12
13
/**
14
 * @internal
15
 */
16
final class IOConfigResolver implements IOConfig
17
{
18
    /** @var string */
19
    private $storageDir;
20
21
    public function __construct(string $storageDir)
22
    {
23
        $this->storageDir = $storageDir;
24
    }
25
26
    public function getRootDir(): string
27
    {
28
        return $this->storageDir;
29
    }
30
31
    public function getLegacyUrlPrefix(): string
32
    {
33
        return $this->storageDir;
34
    }
35
36
    public function getUrlPrefix(): string
37
    {
38
        return $this->storageDir;
39
    }
40
}
41