Client   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getClientId() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2019 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
namespace OAuth2Framework\ServerBundle\Tests\TestBundle\Entity;
15
16
use OAuth2Framework\Component\Core\Client\AbstractClient;
17
use OAuth2Framework\Component\Core\Client\ClientId;
18
use OAuth2Framework\Component\Core\DataBag\DataBag;
19
use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
20
21
class Client extends AbstractClient
22
{
23
    /**
24
     * @var ClientId
25
     */
26
    protected $clientId;
27
28
    public function __construct(ClientId $clientId, DataBag $parameters, ?UserAccountId $ownerId)
29
    {
30
        $this->clientId = $clientId;
31
        parent::__construct($parameters, $ownerId);
32
    }
33
34
    public function getClientId(): ClientId
35
    {
36
        return $this->clientId;
37
    }
38
}
39