Completed
Push — master ( 2a83dc...50197b )
by Jonathan
9s
created

CdnResolver::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Jb\Bundle\FileUploaderBundle\Service\Resolver;
3
4
5
/**
6
 * AssetsResolver
7
 *
8
 * @author jobou
9
 */
10
class CdnResolver implements ResolverInterface
11
{
12
13
    /**
14
     * @var string
15
     */
16
    protected $url;
17
18
    /**
19
     * Constructor
20
     *
21
     * @param string $url
22
     */
23
    public function __construct($url)
24
    {
25
        $this->url = $url;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getUrl($key)
32
    {
33
        return $this->url . '/' . $key;
34
    }
35
}
36