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

WebhookExchangeRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A findByUrl() 0 9 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