Completed
Push — master ( 36f73c...56dc59 )
by Derek Stephen
04:32
created

ClientService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace OAuth\Service;
4
5
use OAuth\Repository\ClientRepository;
6
7
/**
8
 * Class ClientService
9
 * @package Entity\OAuth\Service
10
 */
11
class ClientService
12
{
13
    /**
14
     * @var ClientRepository
15
     */
16
    private $clientRepository;
17
18
    /**
19
     * ClientService constructor.
20
     * @param ClientRepository $clientRepository
21
     */
22
    public function __construct(ClientRepository $clientRepository)
23
    {
24
        $this->clientRepository = $clientRepository;
25
    }
26
27
    /**
28
     * @return ClientRepository
29
     */
30
    public function getClientRepository(): ClientRepository
31
    {
32
        return $this->clientRepository;
33
    }
34
}