Completed
Push — master ( 4a7fd0...bb86ee )
by Loïc
13s queued 10s
created

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPublicId() 0 4 1
1
<?php
2
/*
3
 * This file is part of AppName.
4
 *
5
 * (c) Monofony
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace App\Entity\OAuth;
12
13
use FOS\OAuthServerBundle\Entity\Client as BaseClient;
14
use Doctrine\ORM\Mapping as ORM;
15
use FOS\OAuthServerBundle\Model\ClientInterface;
16
17
/**
18
 * @ORM\Entity
19
 * @ORM\Table(name="oauth_client")
20
 */
21
class Client extends BaseClient implements ClientInterface
22
{
23
    /**
24
     * @ORM\Id
25
     * @ORM\Column(type="integer")
26
     * @ORM\GeneratedValue(strategy="AUTO")
27
     */
28
    protected $id;
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getPublicId(): string
34
    {
35
        return $this->getRandomId();
36
    }
37
}
38