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

ClientService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
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 getClientRepository() 0 4 1
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
}