Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | class ClientService |
||
13 | { |
||
14 | /** |
||
15 | * @var ClientRepository |
||
16 | */ |
||
17 | private $clientRepository; |
||
18 | |||
19 | /** |
||
20 | * ClientService constructor. |
||
21 | * @param ClientRepository $clientRepository |
||
22 | */ |
||
23 | public function __construct(ClientRepository $clientRepository) |
||
24 | { |
||
25 | $this->clientRepository = $clientRepository; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return ClientRepository |
||
30 | */ |
||
31 | public function getClientRepository(): ClientRepository |
||
32 | { |
||
33 | return $this->clientRepository; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param Client $client |
||
38 | * @return Client |
||
39 | */ |
||
40 | public function generateSecret(Client $client) |
||
48 | } |
||
49 | } |