Completed
Pull Request — master (#22)
by Sergey
15:20 queued 20s
created

Container::getCacheRepository()   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 Isswp101\Persimmon\DI;
4
5
use Isswp101\Persimmon\Repository\IRepository;
6
7
class Container
8
{
9
    private $repository;
10
    private $cacheRepository;
11
12
    public function __construct(IRepository $repository, IRepository $cacheRepository)
13
    {
14
        $this->repository = $repository;
15
        $this->cacheRepository = $cacheRepository;
16
    }
17
18
    public function getRepository(): IRepository
19
    {
20
        return $this->repository;
21
    }
22
23
    public function getCacheRepository(): IRepository
24
    {
25
        return $this->cacheRepository;
26
    }
27
}