Completed
Push — master ( 45301f...e76351 )
by Joachim
07:16
created

WebhookExchangeRepository::findByUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Loevgaard\DandomainAltapayBundle\Entity;
4
5
class WebhookExchangeRepository extends EntityRepository
6
{
7
    /**
8
     * @param string $url
9
     * @return WebhookExchange|null
10
     */
11
    public function findByUrl(string $url) : ?WebhookExchange
12
    {
13
        /** @var WebhookExchange $obj */
14
        $obj = $this->findOneBy([
15
            'url' => $url
16
        ]);
17
18
        return $obj;
19
    }
20
}
21