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

ClientManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A findClientByPublicId() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of AppName.
5
 *
6
 * (c) Monofony
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Entity\OAuth;
13
14
use FOS\OAuthServerBundle\Entity\ClientManager as BaseClientManager;
15
use FOS\OAuthServerBundle\Model\ClientInterface;
16
17
class ClientManager extends BaseClientManager
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function findClientByPublicId($publicId): ?ClientInterface
23
    {
24
        return $this->findClientBy(['randomId' => $publicId]);
25
    }
26
}
27