Completed
Pull Request — master (#22)
by Sergey
15:55
created

Container::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Isswp101\Persimmon\DI;
4
5
use Isswp101\Persimmon\Cache\ICache;
6
use Isswp101\Persimmon\Repository\IRepository;
7
8
class Container
9
{
10
    private $repository;
11
    private $cache;
12
13
    public function __construct(IRepository $repository, ICache $cache)
14
    {
15
        $this->repository = $repository;
16
        $this->cache = $cache;
17
    }
18
19
    public function getRepository(): IRepository
20
    {
21
        return $this->repository;
22
    }
23
24
    public function getCache(): ICache
25
    {
26
        return $this->cache;
27
    }
28
}