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

IOConfigResolver::getLegacyUrlPrefix()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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