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

CdnResolver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUrl() 0 4 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