1 | <?php |
||
10 | class ClientRepository extends EntityRepository implements ClientRepositoryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @param string $clientIdentifier |
||
14 | * @param string $grantType |
||
15 | * @param null|string|null $clientSecret |
||
16 | * @param bool $mustValidateSecret |
||
17 | * |
||
18 | * @return ClientEntityInterface|null |
||
19 | */ |
||
20 | public function getClientEntity($clientIdentifier, $grantType, $clientSecret = null, $mustValidateSecret = true) |
||
41 | |||
42 | /** |
||
43 | * @param Client $client |
||
44 | * @return Client |
||
45 | * @throws \Doctrine\ORM\OptimisticLockException |
||
46 | */ |
||
47 | public function create(Client $client) |
||
53 | |||
54 | /** |
||
55 | * @param Client $client |
||
56 | * @return Client |
||
57 | * @throws \Doctrine\ORM\OptimisticLockException |
||
58 | */ |
||
59 | public function save(Client $client) |
||
64 | |||
65 | /** |
||
66 | * @param Client $client |
||
67 | * @throws \Doctrine\ORM\OptimisticLockException |
||
68 | */ |
||
69 | public function delete(Client $client) |
||
74 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.