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

ClientManager::findClientByPublicId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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