AbstractPimpleContainer::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-Core package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Bridge\Pimple\Container;
13
14
use Pimple\Container;
15
16
abstract class AbstractPimpleContainer
17
{
18
    /** @var Container */
19
    protected $pimple;
20
21
    /**
22
     * @param Container $pimple
23
     */
24 10
    public function __construct(Container $pimple)
25
    {
26 10
        $this->pimple = $pimple;
27 10
    }
28
29
    /**
30
     * @return Container
31
     */
32 8
    public function getPimple()
33
    {
34 8
        return $this->pimple;
35
    }
36
}
37