Completed
Pull Request — master (#437)
by Albin
13:34 queued 06:13
created

BlobProxyFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A create() 0 4 1
1
<?php
2
3
namespace Gaufrette\Adapter\Azure;
4
5
use WindowsAzure\Common\ServicesBuilder;
6
7
/**
8
 * Basic implementation for a Blob proxy factory.
9
 *
10
 * @author Luciano Mammino <[email protected]>
11
 */
12
class BlobProxyFactory implements BlobProxyFactoryInterface
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $connectionString;
18
19
    /**
20
     * @param string $connectionString
21
     */
22
    public function __construct($connectionString)
23
    {
24
        $this->connectionString = $connectionString;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function create()
31
    {
32
        return ServicesBuilder::getInstance()->createBlobService($this->connectionString);
33
    }
34
}
35