Passed
Push — master ( 16b30f...f79ab4 )
by Radu
01:14
created

ClientsCommand::generateAuthenticationToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
namespace ParcelValue\ApiClient\Domain\Clients;
3
4
final class ClientsCommand extends \ParcelValue\ApiClient\AbstractController
5
{
6
    public function __construct()
7
    {
8
        parent::__construct();
9
10
        $this->repository = new ClientsRepository($this->outputLoader);
11
    }
12
13
    public function generateAuthenticationToken($clientId, $clientKey, $serverKey)
14
    {
15
        $jwt = \ParcelValue\Api\AuthenticationToken::generate($clientId, $clientKey, $serverKey);
16
        $this->outputCli($jwt, true);
17
        return new \WebServCo\Framework\CliResponse('', true);
18
    }
19
}
20