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

BlobProxyFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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