Completed
Pull Request — master (#3)
by Klochok
04:11
created

Service   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getStorage() 0 4 1
1
<?php
2
/**
3
 * Library for confirmation tokens.
4
 *
5
 * @link      https://github.com/hiqdev/php-confirmator
6
 * @package   php-confirmator
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\confirmator;
12
13
class Service implements ServiceInterface
14
{
15
    use ServiceTrait;
16
17
    protected $storage;
18
19
    public function __construct(StorageInterface $storage)
20
    {
21
        $this->storage = $storage;
22
    }
23
24
    public function getStorage()
25
    {
26
        return $this->storage;
27
    }
28
}
29